On Tue, Oct 26, 2010 at 4:27 PM, Greg Young <[email protected]> wrote: > When using VS2010 with cecil for some weird reason everytime I open the > project, I have to switch every project to 3.5 and then back to 4.0 or else > I get a bunch of build errors after about extension attribute.
The real fix is to adjust the csproj file depending on the profile you target. If you're targeting at least .net 3.5, you just have to reference System.Core and to define NET_3_5 when building Cecil. And bang, no more issue with the ExtensionAttribute. (Works by defining NET_4_0 if you target .net 4.0 too). -- -- mono-cecil
