While trying to compile, I get a multiple definitions warning, then monosymbolreader breaks. #148

Closed
opened 2013-12-15 14:47:39 -06:00 by firestorm713 · 1 comment
firestorm713 commented 2013-12-15 14:47:39 -06:00 (Migrated from github.com)

I get a warning stating:
Warning 1 The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Core.dll' Mono.Cecil.Mdb

Then an error
Error 2 No overload for method 'ReadSymbolFile' takes 2 arguments C:\Users\firestorm713\Documents\jsil\JSIL\Upstream\ILSpy\Mono.Cecil\symbols\mdb\Mono.Cecil.Mdb\MdbReader.cs 43 26 Mono.Cecil.Mdb

I'm betting it's something in my configurations, or some missing library, or something, but I can't seem to figure it out.
I'm trying to compile it on VS2010, I'm also trying to compile it as part of another project JSIL. I started an issue there, but they directed me here.

EDIT: With VS2012, it compiles fine, but I'd like to see if I can't fix this issue, so I can get everything working with XNA. The VS2012 project doesn't use it.

I get a warning stating: Warning 1 The predefined type 'System.Runtime.CompilerServices.ExtensionAttribute' is defined in multiple assemblies in the global alias; using definition from 'c:\Program Files (x86)\Reference Assemblies\Microsoft\Framework.NETFramework\v4.0\System.Core.dll' Mono.Cecil.Mdb Then an error Error 2 No overload for method 'ReadSymbolFile' takes 2 arguments C:\Users\firestorm713\Documents\jsil\JSIL\Upstream\ILSpy\Mono.Cecil\symbols\mdb\Mono.Cecil.Mdb\MdbReader.cs 43 26 Mono.Cecil.Mdb I'm betting it's something in my configurations, or some missing library, or something, but I can't seem to figure it out. I'm trying to compile it on VS2010, I'm also trying to compile it as part of another project JSIL. I started an issue there, but they directed me here. EDIT: With VS2012, it compiles fine, but I'd like to see if I can't fix this issue, so I can get everything working with XNA. The VS2012 project doesn't use it.
jbevain commented 2014-01-20 10:15:51 -06:00 (Migrated from github.com)

You're probably not picking the proper configuration for all projects. Check the Configuration manager for all projects, you certainly want to compile everything for .net 4.0.

You're probably not picking the proper configuration for all projects. Check the Configuration manager for all projects, you certainly want to compile everything for .net 4.0.
Sign in to join this conversation.
No milestone
No assignees
1 participant
Notifications
Due date
The due date is invalid or out of range. Please use the format "yyyy-mm-dd".

No due date set.

Dependencies

No dependencies set

Reference
gh-jbevain/cecil#148
No description provided.