Bug 12181 - C# Compiler fails to resolve assembly references
Summary: C# Compiler fails to resolve assembly references
Status: RESOLVED FIXED
Alias: None
Product: Compilers
Classification: Mono
Component: C# ()
Version: unspecified
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Marek Safar
URL:
Depends on:
Blocks:
 
Reported: 2013-05-09 10:51 UTC by Aaron Lerch
Modified: 2013-05-09 11:46 UTC (History)
1 user (show)

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


Attachments
Reproduction of the issue (280.82 KB, application/x-gzip)
2013-05-09 10:51 UTC, Aaron Lerch
Details


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:
Status:
RESOLVED FIXED

Description Aaron Lerch 2013-05-09 10:51:37 UTC
Created attachment 3940 [details]
Reproduction of the issue

When related assembly references exist in disparate directories, mcs fails to compile successfully.
A reproduction is attached - the "build-fail.sh" script contains the command line that fails, and the "build-succeed.sh" script contains the command line that succeeds. The only difference is the location of the referenced assemblies.

The problem occurs when you have a situation where assembly references have a dependency on each other, but were compiled against different versions of themselves. Sounds confusing perhaps, so here's an example (from the reproduction I included).

NLog.dll => version 2.0.1.0
NLog.Targets.Syslog.dll => version 1.0.0.0, built with a dependency on NLog.dll version 2.0.0.0
my example source code => building against NLog.Targets.Syslog.dll 1.0.0.0

During compilation, mcs fails to resolve the NLog.dll dependency of NLog.Targets.Syslog.dll. If both of those assemblies co-exist in the same directory, mcs resolves NLog.dll successfully and the build succeeds.

When performing this same failure case on Windows using csc.exe, the compiler produces a warning but succeeds:
*****************
C:\Users\aaronlerch\Documents\sandbox\repro> csc /out:test.exe /r:deps/NLog/NLog.dll /r:deps/NLog.Targets.Syslog/NLog.Ta
rgets.Syslog.dll Program.cs
Microsoft (R) Visual C# Compiler version 4.0.30319.17929
for Microsoft (R) .NET Framework 4.5
Copyright (C) Microsoft Corporation. All rights reserved.

deps\NLog.Targets.Syslog\NLog.Targets.Syslog.dll: warning CS1702: Assuming assembly reference 'NLog, Version=2.0.0.0,
        Culture=neutral, PublicKeyToken=5120e14c03d0593c' matches 'NLog, Version=2.0.1.0, Culture=neutral,
        PublicKeyToken=5120e14c03d0593c', you may need to supply runtime policy
deps\NLog\NLog.dll: (Location of symbol related to previous warning)
*****************

This issue comes up with the introduction of NuGet for managing dependencies. The NLog example I provided is actually one of the real-world issues I've run into (and not the only one). NuGet adds packages that depend on each other, but the assemblies are not co-located.

A current workaround is to set the MONO_PATH environment variable to include all possible dependency directories, which are then resolved after the default assembly probing fails, and the program compiles.

This workaround is problematic when using a tool like xbuild (or just Xamarin Studio's built-in build feature) because I am unable to set MONO_PATH such that the compiler picks it up. I would have to replace the call to mcs myself with a shell script of some kind. (If there is an easy way to work around this, please let me know!)

Below is the output of running the failure case and having MONO_LOG_LEVEL set to "debug".
Thanks!



Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll'.
Mono: Image addref mscorlib[0x620fa0] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll[0x1121400]: 2
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/mscorlib/mscorlib.config'.
Mono: Assembly mscorlib[0x620fa0] added to domain dmcs.exe, ref_count=1
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/config'.
Mono: Config attempting to parse: '/Users/aaronlerch/.mono/config'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe'.
Mono: Image addref dmcs[0x636820] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe[0x1132000]: 2
Mono: Assembly dmcs[0x636820] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/dmcs/dmcs.config'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe'.
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe.dylib, 9): image not found

Mono: Assembly Ref addref dmcs[0x636820] -> mscorlib[0x620fa0]: 2
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe.config'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.dll'.
Mono: Image addref System[0x637890] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll[0x115e000]: 2
Mono: Assembly System[0x637890] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System/4.0.0.0__b77a5c561934e089/System.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/System/System.config'.
Mono: Assembly Ref addref dmcs[0x636820] -> System[0x637890]: 2
Mono: Assembly Ref addref System[0x637890] -> mscorlib[0x620fa0]: 3
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.Core.dll'.
Mono: Image addref System.Core[0x63fe10] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll[0x1169c00]: 2
Mono: Assembly System.Core[0x63fe10] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.Core.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/System.Core/System.Core.config'.
Mono: Assembly Ref addref dmcs[0x636820] -> System.Core[0x63fe10]: 2
Mono: Assembly Ref addref System.Core[0x63fe10] -> mscorlib[0x620fa0]: 4
Mono: Assembly Ref addref System.Core[0x63fe10] -> System[0x637890]: 3
Mono: DllImport attempting to load: 'libc.dylib'.
Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib'.
Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib, 9): image not found'.
Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib'.
Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib, 9): image not found'.
Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib.so'.
Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib.so, 9): image not found'.
Mono: DllImport loading library: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib.bundle'.
Mono: DllImport error loading library 'dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/libc.dylib.bundle, 9): image not found'.
Mono: DllImport loading location: 'libc.dylib'.
Mono: Searching for 'isatty'.
Mono: Probing 'isatty'.
Mono: Found as 'isatty'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.Xml.dll'.
Mono: Image addref System.Xml[0x28271b0] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll[0x211ec00]: 2
Mono: Assembly System.Xml[0x28271b0] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.Xml.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/System.Xml/System.Xml.config'.
Mono: Assembly Ref addref dmcs[0x636820] -> System.Xml[0x28271b0]: 2
Mono: Assembly Ref addref System.Xml[0x28271b0] -> mscorlib[0x620fa0]: 5
Mono: gc took 278 usecs
Mono: gc took 358 usecs
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/Microsoft.CSharp.dll'.
Mono: Image addref Microsoft.CSharp[0x2861ab0] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll[0x212b600]: 2
Mono: Assembly Microsoft.CSharp[0x2861ab0] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/Microsoft.CSharp.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/Microsoft.CSharp/Microsoft.CSharp.config'.
Mono: Assembly Loader probing location: 'deps/NLog/NLog.dll'.
Mono: Image addref NLog[0x28622e0] -> /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog/NLog.dll[0x213c400]: 2
Mono: Assembly NLog[0x28622e0] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog/NLog.dll.dylib: dlopen(/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog/NLog.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: 'deps/NLog/NLog.dll'.
Mono: Config attempting to parse: '/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog/NLog.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/NLog/NLog.config'.
Mono: Assembly Loader probing location: 'deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll'.
Mono: Image addref NLog.Targets.Syslog[0x285d930] -> /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll[0x212ea00]: 2
Mono: Assembly NLog.Targets.Syslog[0x285d930] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll.dylib: dlopen(/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: 'deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll'.
Mono: Config attempting to parse: '/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/NLog.Targets.Syslog/NLog.Targets.Syslog.config'.
Mono: gc took 756 usecs
Mono: gc took 1053 usecs
Mono: gc took 1507 usecs
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.Configuration.dll'.
Mono: Image addref System.Configuration[0x2874630] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll[0x2418c00]: 2
Mono: Assembly System.Configuration[0x2874630] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.Configuration.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/System.Configuration/System.Configuration.config'.
Mono: Assembly Ref addref System[0x637890] -> System.Configuration[0x2874630]: 2
Mono: Assembly Ref addref System.Configuration[0x2874630] -> mscorlib[0x620fa0]: 6
Mono: Assembly Ref addref System[0x637890] -> System.Xml[0x28271b0]: 3
Mono: gc took 2281 usecs
Mono: Assembly Ref addref System.Xml[0x28271b0] -> System[0x637890]: 4
Mono: Assembly Ref addref Microsoft.CSharp[0x2861ab0] -> mscorlib[0x620fa0]: 7
Mono: Assembly Ref addref Microsoft.CSharp[0x2861ab0] -> System.Core[0x63fe10]: 3
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/Mono.CSharp.dll'.
Mono: Image addref Mono.CSharp[0x287ff30] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Mono.CSharp/4.0.0.0__0738eb9f132ed756/Mono.CSharp.dll[0x223ea00]: 2
Mono: Assembly Mono.CSharp[0x287ff30] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Mono.CSharp/4.0.0.0__0738eb9f132ed756/Mono.CSharp.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Mono.CSharp/4.0.0.0__0738eb9f132ed756/Mono.CSharp.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/Mono.CSharp.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Mono.CSharp/4.0.0.0__0738eb9f132ed756/Mono.CSharp.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/Mono.CSharp/Mono.CSharp.config'.
Mono: Assembly Ref addref Microsoft.CSharp[0x2861ab0] -> Mono.CSharp[0x287ff30]: 2
Mono: Assembly Ref addref Mono.CSharp[0x287ff30] -> mscorlib[0x620fa0]: 8
Mono: Assembly Ref addref NLog[0x28622e0] -> mscorlib[0x620fa0]: 9
Mono: Assembly Ref addref NLog[0x28622e0] -> System.Core[0x63fe10]: 4
Mono: Assembly Ref addref NLog[0x28622e0] -> System[0x637890]: 5
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.ServiceModel.dll'.
Mono: Image addref System.ServiceModel[0x2883330] -> /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll[0x224d400]: 2
Mono: Assembly System.ServiceModel[0x2883330] added to domain dmcs.exe, ref_count=1
Mono: AOT failed to load AOT module /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll.dylib: dlopen(/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll.dylib, 9): image not found

Mono: Assembly Loader loaded assembly from location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/System.ServiceModel.dll'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll.config'.
Mono: Config attempting to parse: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/../etc/mono/assemblies/System.ServiceModel/System.ServiceModel.config'.
Mono: Assembly Ref addref NLog[0x28622e0] -> System.ServiceModel[0x2883330]: 2
Mono: Assembly Ref addref System.ServiceModel[0x2883330] -> mscorlib[0x620fa0]: 10
Mono: gc took 3229 usecs
Mono: The request to load the assembly mscorlib v2.0.0.0 was remapped to v4.0.0.0
Mono: Assembly Ref addref NLog.Targets.Syslog[0x285d930] -> mscorlib[0x620fa0]: 11
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/NLog/2.0.0.0__5120e14c03d0593c/NLog.dll'.
Mono: Assembly Loader probing location: '/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.dll'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/NLog.dll'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/NLog/2.0.0.0__5120e14c03d0593c/NLog.exe'.
Mono: Assembly Loader probing location: '/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.exe'.
Mono: Assembly Loader probing location: '/Library/Frameworks/Mono.framework/VersionCompilation failed: 2 error(s), 0 warnings
s/2.10.12/lib/NLog.exe'.
Mono: The following assembly referenced from /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll could not be loaded:
     Assembly:   NLog    (assemblyref_index=0)
     Version:    2.0.0.0
     Public Key: 5120e14c03d0593c
The assembly was not found in the Global Assembly Cache, a path listed in the MONO_PATH environment variable, or in the location of the executing assembly (/Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/).

Mono: Failed to load assembly NLog.Targets.Syslog[0x285d930]

Mono: Could not load file or assembly 'NLog, Version=2.0.0.0, Culture=neutral, PublicKeyToken=5120e14c03d0593c' or one of its dependencies.
Mono: The class NLog.Targets.Syslog could not be loaded, used in NLog.Targets.Syslog, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
Mono: gc took 4223 usecs
Mono: Unloading domain dmcs.exe[0x464e00], assembly test[0x2f44d90], ref_count=1

Mono: Unloading assembly test [0x2f44d90].
Mono: Unloading image test [0x4065000].
Mono: Unloading image test [0x41dc000].
Mono: Unloading domain dmcs.exe[0x464e00], assembly System.ServiceModel[0x2883330], ref_count=2

Mono: Unloading domain dmcs.exe[0x464e00], assembly Mono.CSharp[0x287ff30], ref_count=2

Mono: Unloading domain dmcs.exe[0x464e00], assembly System.Configuration[0x2874630], ref_count=2

Mono: Unloading domain dmcs.exe[0x464e00], assembly NLog.Targets.Syslog[0x285d930], ref_count=1

Mono: Unloading assembly NLog.Targets.Syslog [0x285d930].
Mono: Unloading image /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog.Targets.Syslog/NLog.Targets.Syslog.dll [0x212ea00].
Mono: Unloading domain dmcs.exe[0x464e00], assembly NLog[0x28622e0], ref_count=1

Mono: Unloading assembly NLog [0x28622e0].
Mono: Unloading image /Users/aaronlerch/Projects/repro/MonoCompilerFail/deps/NLog/NLog.dll [0x213c400].
Mono: Unloading assembly System.ServiceModel [0x2883330].
Mono: Unloading image /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.ServiceModel/4.0.0.0__b77a5c561934e089/System.ServiceModel.dll [0x224d400].
Mono: Unloading domain dmcs.exe[0x464e00], assembly Microsoft.CSharp[0x2861ab0], ref_count=1

Mono: Unloading assembly Microsoft.CSharp [0x2861ab0].
Mono: Unloading image /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Microsoft.CSharp/4.0.0.0__b03f5f7f11d50a3a/Microsoft.CSharp.dll [0x212b600].
Mono: Unloading assembly Mono.CSharp [0x287ff30].
Mono: Unloading image /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/Mono.CSharp/4.0.0.0__0738eb9f132ed756/Mono.CSharp.dll [0x223ea00].
Mono: Unloading domain dmcs.exe[0x464e00], assembly System.Xml[0x28271b0], ref_count=3

Mono: Unloading domain dmcs.exe[0x464e00], assembly System.Core[0x63fe10], ref_count=2

Mono: Unloading domain dmcs.exe[0x464e00], assembly System[0x637890], ref_count=4

Mono: Unloading domain dmcs.exe[0x464e00], assembly dmcs[0x636820], ref_count=1

Mono: Unloading assembly dmcs [0x636820].
Mono: Unloading image /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/dmcs.exe [0x1132000].
Mono: Unloading assembly System.Core [0x63fe10].
Mono: Unloading image /Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Core/4.0.0.0__b77a5c561934e089/System.Core.dll [0x1169c00].
Mono: Unloading domain dmcs.exe[0x464e00], assembly mscorlib[0x620fa0], ref_count=4

Mono: Assembly image '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll' still loaded at shutdown.
Mono: Assembly image '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/4.0/mscorlib.dll' still loaded at shutdown.
Mono: Assembly image '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Configuration/4.0.0.0__b03f5f7f11d50a3a/System.Configuration.dll' still loaded at shutdown.
Mono: Assembly image '/Library/Frameworks/Mono.framework/Versions/2.10.12/lib/mono/gac/System.Xml/4.0.0.0__b77a5c561934e089/System.Xml.dll' still loaded at shutdown.
Mo
Comment 1 Marek Safar 2013-05-09 11:46:02 UTC
Already fixed in Mono 3.0