Bug 20089 - 'Assembly not resolved' error
Summary: 'Assembly not resolved' error
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: 3.4.0
Hardware: PC Linux
: --- normal
Target Milestone: ---
Assignee: Marek Safar
Depends on:
Reported: 2014-05-28 08:36 UTC by Sergey Zhukov
Modified: 2014-05-28 19:50 UTC (History)
1 user (show)

Is this bug a regression?: ---
Last known good build:

Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.

Please create a new report on GitHub or Developer Community with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:

Description Sergey Zhukov 2014-05-28 08:36:41 UTC
Steps to reproduce: 
Download source code from the link
http://simpleinjector.codeplex.com/SourceControl/list/changesets# (or you can
clone it if you have git was compiled with libcurl4-openssl)
Open the solution SimpleIntector.sln in monodevelop.

Edit file SimpleInjector.NET/SimpleInjector.NET.csproj: comment out this section, or you catch other issue
<Import Project="..\BuildTools\Microsoft.VersionNumber.Targets" /> -->
  <Target Name="BeforeBuild">
    <Message Text="Updating AssemblyInfo to Version $(VersionNumber)">
    <Message Text="Writing to AssemblyInfo files in $(SolutionRoot)">
    <AssemblyInfo AssemblyInfoFiles="@(AssemblyInfoFiles)" AssemblyCopyright="" AssemblyVersion="$(VersionNumber)" AssemblyFileVersion="$(VersionNumber)">

Select SimpleInjector.CodeSamples project and compile it.

You'll get an error message:

	Target ResolveAssemblyReferences:
/usr/lib/mono/4.5/Microsoft.Common.targets:  warning : Reference '/home/sergey/Projects/IoC/simpleinjector/bin/NET//SimpleInjector.dll' not resolved

and alot of error messages about missing SimpleInjector namespaces.

if you run it from command line like
cd SimpleInjector.CodeSamples 
xbuild /p:Configuration=Debug /p:TreatWarningsAsErrors=false

it will be built.

Mono JIT compiler version 3.4.1 (master/5ed69a0 Wed May 28 06:31:59 NOVT 2014)
Copyright (C) 2002-2014 Novell, Inc, Xamarin Inc and Contributors. www.mono-project.com
	TLS:           __thread
	SIGSEGV:       altstack
	Notifications: epoll
	Architecture:  x86
	Disabled:      none
	Misc:          softdebug 
	LLVM:          supported, not enabled.
	GC:            sgen

=== MonoDevelop ===

Version 5.1
Installation UUID: 941343e7-3193-4d86-b495-599972b9f70c
	Mono 3.4.1 (master/5ed69a0 Wed May 28 06:31:59 NOVT 2014)
	GTK+ 2.24.10 (Ambiance theme)

=== Build Information ===


=== Operating System ===

Linux 3.2.0-61-generic-pae #92-Ubuntu SMP Tue Apr 1 00:10:04 UTC 2014 i686 i686 i386 GNU/Linux
Comment 1 Marek Safar 2014-05-28 12:11:18 UTC
It works for me with Mono master as expected, it builds without error.

Double check you are using 3.4.1 runtime in MonoDevelop
Comment 2 Sergey Zhukov 2014-05-28 19:50:14 UTC
After updating monodevelop I am able to compile it too.