problem about multitargeting-Collection of common programming errors


  • joshperry
    visual-studio visual-studio-2012 multitargeting
    I need to be able to target .NET Framework 4.0 using Visual Studio 2012 and verify that my code will work correctly when deployed on our 4.0 environment (Windows Server 2003).The multi-targeting in Visual Studio 2012 seems to work properly, but only for mscorlib.dll. When referencing any other framework DLL, for compilation you get proper errors for e.g. referencing a type that doesn’t exist in 4.0, but the 4.5 version of the DLL is loaded during execution and debugging.This makes it impossible

  • dnord
    .net visual-studio visual-studio-2008 .net-2.0 multitargeting
    I had a VS2005 solution and wanted to get off VS2005 for the new year. I was mostly happy with the upgrade process and pleasantly surprised to see that my build scripts mostly still worked.My question is around the multi-targeting feature – I don’t have .NET 3.5 installed on my servers, so I have to continue to target .NET 2.0. That worked, mostly, but I found that I could do things like var returnMe = “result: ” + result.ToString();…and still debug the project successfully. When I got that

  • Divine
    c# .net .net-4.0 visual-studio-2012 multitargeting
    Having gone through various blogs, I am quite confused about the terminology of “multitargeting” or side by side execution.Some blogs say that, side by side execution means two versions of CLRs in a process. Some others claims that, its like .net 2.0 and .net 3.0 assembly executing side by side. I am extremely disappointed that I am unsure who is right who is wrong. I also saw in many blogs like Scott Hanselman’s blog etc (Which confuses a lot), that, any feature of .NET 4.5 will not work if th