Looks like MSVS 11.0 Beta spoiled a MSVS 10.0 installation

后端 未结 8 1964
野的像风
野的像风 2021-02-05 15:24

I ran into compilation problems with my MSVS 10 after installing MSVS 11Beta. Now, when I compile my C# Projects in MSVS 10 (Projects created in MSVS 10; Target framework: 3.5),

8条回答
  •  暖寄归人
    2021-02-05 16:00

    This issue occurred for me on my TFS 2010 build server after installing VS2010 and then installing .NET Framework 4.5. This allowed me to build .NET 4.5 projects but any VS2008 project targeting CLR2 (.NET 2.0 -3.5) I attempted to build would return the error. None of the suggestions on the handful of sites talking about this issue worked.

    1. Rebooting - Did not fix the issue
    2. Setting DisableOutOfProcTaskHost = true in an environment variable and also within the project file - Did not fix the issue
    3. Username of my build account was already less than 20 characters
    4. Renaming windows SDK folder - N/A since I did not have VS2012 and the 8.0A SDK installed... just .NET framework 4.5.

    In any case, to fix this I uninstalled .NET 4.5, repaired VS2010, and then rebooted the build server. Now I am able to build VS2008 and VS2010 projects with no issues.

    Luckily I no longer need to build .NET 4.5 projects as that team decided to go back to .NET 4.0.

提交回复
热议问题