The specified framework 'Microsoft.NETCore.App', version '2.2.0' was not found

前端 未结 3 670
太阳男子
太阳男子 2021-02-12 01:57

I am using Visual Studio 2019 Version 16.3.7. I assume it is the latest update.

When I try to compile a basic .NET Core 2.2 console application:

...I ge

3条回答
  •  无人共我
    2021-02-12 02:52

    You can install x86 .NET Core 2.2.x Platform SDK as @Martin said.

    If you do not need x86 version like me, you can also set

    AnyCPU
    

    to

     x64
    

    in both main project and test project 's .csproj file

    to avoid this problem.

提交回复
热议问题