How to select .NET 4.5.2 as a target framework in Visual Studio

前端 未结 2 1664
温柔的废话
温柔的废话 2020-12-12 18:53

I have installed .NET Framework 4.5.2 on Windows 8.1. But in Visual Studio 2013 I do not see the .NET Framework 4.5.2 option (see screenshot). How do I target my project for

相关标签:
2条回答
  • 2020-12-12 19:21

    You need to install the Microsoft .NET Framework 4.5.2 Developer Pack

    This contains the following components (emphasis added by me):

    • .NET Framework 4.5.2

    • .NET Framework 4.5.2 Multi-Targeting Pack: Contains the reference assemblies needed to build apps that target the .NET Framework 4.5.2

    • .NET Framework 4.5.2 Language Packs

    • .NET Framework 4.5.2 Multi-Targeting Pack Language Packs: Contains the IntelliSense files to display help while building apps that target the .NET Framework 4.5.2 through Visual Studio and third party IDEs.

    0 讨论(0)
  • 2020-12-12 19:27

    I had the same problem. The point was that I have installed DevPack only for my language.

    NDP462-DevPack-KB3151934-RUS.exe

    as the result the appropriate folder here

    C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework
    

    contained only one folder "ru", while the folder 4.6.1 was full of files.

    In the end, installing

    NDP462-DevPack-KB3151934-ENU.exe

    solved the problem.

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