Targeting pack for .NET 4.5.2 not installed

后端 未结 8 1843
佛祖请我去吃肉
佛祖请我去吃肉 2020-12-13 01:45

When opening an already existing solution in Visual Studio, it says

The C# project \"...\" is targeting \".NETFramework,Version=v4.5.2\", which is not

8条回答
  •  Happy的楠姐
    2020-12-13 02:07

    I had this issue with .NET 4.6.2 (VS2017) - I downloaded the Developer pack from the link provided by the error message and installed, but it didn't help.

    But then I opened up the Programs and Features in Windows Control Panel, and selected to "Change" Visual Studio 2017. The installer contains a tab entitled "Individual Components", and in there I saw that Targeting Pack for 4.6.2 was not selected.

    Selecting them and selecting "Modify" fixed the problem.

提交回复
热议问题