Jb

Just an FYI in case anyone else has this issue

I was having issues building when using extension methods in a project
that references cecil.

Here are the compile errors
http://teamcity.codebetter.com/viewLog.html?buildId=16167&tab=buildResultsDiv&buildTypeId=bt211

"CSC error CS0656: Missing compiler required member
'System.Runtime.CompilerServices.ExtensionAttribute..ctor'"

Turns out that this was caused by the hack/workaround you do to use
extension methods in a .net 2 project.
http://github.com/jbevain/cecil/blob/master/System.Runtime.CompilerServices/ExtensionAttribute.cs

For me to get around this I had to re-compile cecil against .net 4 and
remove ExtensionAttribute.cs

Regards

Simon

-- 
--
mono-cecil

Reply via email to