Re: Could not load System.Runtime.CompilerServices.ExtenstionAttribute from assembly mscorlib

Jeroen Frijters <[email protected]>
Newsgroups gmane.comp.java.ikvm.devel
Message-ID <[email protected]>
Hi,

Microsoft moved ExtensionAttribute from System.Core.dll to mscorlib.dll in .NET 4.5, so if you build against 4.5 and then try to run on 4.0 it fails to find the type.

Regards,
Jeroen

> -----Original Message-----
> From: Dennis De Reyer [mailto:[email protected]]
> Sent: Wednesday, May 14, 2014 14:08
> To: [email protected]
> Subject: [Ikvm-developers] Could not load
> System.Runtime.CompilerServices.ExtenstionAttribute from assembly
> mscorlib
> 
> Hi,
> 
> Sorry about reporting this as a bug first, I didn't see the mailinglist
> :)
> 
> At our project we have some problems with IKVM. We're stuck for three
> weeks now and therefore we contacted you.
> 
> 
> If we build our dll's with IKVM, the build succeeded but we got some
> problems... When we create a .Net application and use the dll's that we
> created we sometimes get this error:
> 
> Could not load type 'System.Runtime.CompilerServices.ExtensionAttribute'
> from assembly 'mscorlib, Version=4.0.0.0, Culture=neutral,
> PublicKeyToken=b77a5c561934e089'
> 
> We use IKVM 7.2.4631 and .Net 4.0. On .Net 4.5 we don't have the
> problem.
> 
> 
> Do you have any ideas to solve this problem?
> 
> 
> We tried also the -nostdlib and -lib arguments but that didn't solve it.
> 
> Thanks in advance,
> 
> Dennis De Reyer

------------------------------------------------------------------------------
"Accelerate Dev Cycles with Automated Cross-Browser Testing - For FREE
Instantly run your Selenium tests across 300+ browser/OS combos.
Get unparalleled scalability from the best Selenium testing platform available
Simple to use. Nothing to install. Get started now for free."
http://p.sf.net/sfu/SauceLabs
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.