Multi-targeting .NET Framework 4 and Visual Studio 2012

后端 未结 4 1431
旧巷少年郎
旧巷少年郎 2020-12-29 08:22

I have installed Visual Studio 2012 Professional on my machine. I don\'t have Visual Studio 2010 installed, but I want to keep developing my applications using .NET Framewor

相关标签:
4条回答
  • 2020-12-29 08:45

    After creating new a project, go to its properties (select your project in Solution Explorer then right click and select properties) and select the target framework!

    0 讨论(0)
  • 2020-12-29 08:49

    I solved the problem doing these tasks:

    • Uninstall the Visual Studio 2012
    • Uninstall any reference for the .NET Framework 4.0 or 4.5
    • Clean the register with a tool like Glary Utilities and restart the computer
    • Install the .NET Framework 4.0 and install Microsoft Multi-Targeting for .NET Framework 4.
    • Install Visual Studio 2012 again
    0 讨论(0)
  • 2020-12-29 08:57

    You fixed your problem, but it's likely that .NET Framework 4 Targeting Pack (not to be confused with the .NET Framework itself) failed to install for some reason. Did you get a warning at the end of the Visual Studio installation? Either way, in the future, a repair install of Visual Studio 2012 should have fixed the problem (Add or Remove Programs -> Microsoft Visual Studio [Edition] 2012 -> Change -> Repair).

    0 讨论(0)
  • 2020-12-29 09:03

    I think that your issue is probably some mishap with the installation of .NET Framework. I installed Visual Studio 2012 Beta and have all kind of troubles with compatibility between framework versions. The only remedy was reinstalling Visual Studio, including .NET Framework.

    Check out How to: Target a Version of the .NET Framework (MSDN).

    0 讨论(0)
提交回复
热议问题