Yes, Cecil support .net 3.5 and .net 4.0, on multiple VS versions. You must be using an assembly (this is not specific to Cecil) compiled for a different runtime than the one you're executing.
Jb On Mon, Nov 3, 2014 at 11:59 AM, Santosh Mishra <[email protected]> wrote: > Hi Greg, > > I tried all combinations : > Even: > using Visual studio 2013 with net_3_5_Debug build configuration > Added reference of previously build > cecil-master\cecil-master\bin\net_3_5_Debug\Mono.Cecil.dll > > still same issues > > Q. Does Cecil support 2013 ? > > On Monday, November 3, 2014 4:04:49 PM UTC+5:30, Greg Young wrote: >> >> 2. build using Visual studio 2013 with net_3_5_Debug build configuration >> 4 Added reference of previously build >> cecil-master\cecil-master\bin\net_4_0_Debug\Mono.Cecil.dll >> >> "A reference to a higher version or incompatible assembly cannot be >> added to the project" >> >> You generally cant access 4.0 assemblies in a 3.5 project >> >> Cheers, >> >> Greg >> >> On Mon, Nov 3, 2014 at 11:23 AM, Santosh Mishra >> <[email protected]> wrote: >> >> Hi jb, >> > >> > >> > [Same thing working on 2010 VS but issues only with 2013] >> > >> > 1. I downloaded cecil-master.zip and >> > 2. build using Visual studio 2013 with net_3_5_Debug build >> > configuration . >> > 3. Just created project using 2013 Visual Studio c# sample , >> > 4 Added reference of previously build >> > cecil-master\cecil-master\bin\net_4_0_Debug\Mono.Cecil.dll >> > 5. Once I select the cecil dll path : error ["A reference to a higher >> > version or incompatible assembly cannot be added to the project"] >> > >> > Test Project: >> > >> > using System; >> > >> > using System.Collections.Generic; >> > >> > using System.Linq; >> > >> > using System.Text; >> > >> > using Mono.Cecil; >> > >> > namespace test >> > >> > { >> > >> > class Program >> > >> > { >> > >> > static void Main(string[] args) >> > >> > { >> > >> > Console.WriteLine("Welcome to C# on Windows Embedded Systems"); >> > >> > } >> > >> > } >> > >> > } >> > >> > >> > Thanks >> > Santosh >> > >> > -- >> > -- >> > -- >> > mono-cecil >> > --- >> > You received this message because you are subscribed to the Google >> > Groups >> > "mono-cecil" group. >> > To unsubscribe from this group and stop receiving emails from it, send >> > an >> > email to [email protected]. >> > For more options, visit https://groups.google.com/d/optout. >> >> >> >> -- >> Studying for the Turing test > > -- > -- > -- > mono-cecil > --- > You received this message because you are subscribed to the Google Groups > "mono-cecil" group. > To unsubscribe from this group and stop receiving emails from it, send an > email to [email protected]. > For more options, visit https://groups.google.com/d/optout. -- -- -- mono-cecil --- You received this message because you are subscribed to the Google Groups "mono-cecil" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. For more options, visit https://groups.google.com/d/optout.
