[Mono-list] using gmcs and C# 3.0 features without requiring System.Core.dll

Dan Shryock dan.shryock at gmail.com
Wed Sep 3 18:19:07 EDT 2008

On Wed, Sep 3, 2008 at 2:57 PM, Rodrigo Kumpera <kumpera at gmail.com> wrote:
> Mono's System.Core is licensed under MIT-X11.
> I'm not sure about its dependencies, you should ask Marek Safar or JB Evain,
> as they
> did a lot of work on it.

I just downloaded .NET Reflector to look at mono's System.Core.dll,
and it only appears to have one dependency on mscorlib, so that
shouldn't be a problem.

I just copied the System.Core.dll from my linux install of mono to a
windows machine with .net 2.0 and when I tried to start my
application, I received the following:

Unhandled Exception: System.IO.FileLoadException: Could not load file
or assembly 'System.Core, Version=, Culture=neutral,
PublicKeyToken=b77a5c561934e089' or one of its dependencies.
Strong name validation failed.
(Exception from HRESULT: 0x8013141A)
File name: 'System.Core, Version=, Culture=neutral, PublicKeyToken=b77a5c
561934e089' ---> System.Security.SecurityException: Strong name validation faile
d. (Exception from HRESULT: 0x8013141A)
The Zone of the assembly that failed was:
   EntryPoint.Usage(String message, String stacktrace)
   at EntryPoint.Main(String[] args)

I'm not very familiar with strong naming (I did it once years ago to
get something in the gac, and haven't looked at it much since), so
does anybody have any ideas on how to resolve this issue?  Thanks.


More information about the Mono-list mailing list