且构网

分享程序员开发的那些事...
且构网 - 分享程序员编程开发的那些事

使用Visual Studio 2017的目标.NET Framework 2.0(不是.NET Core 2.0)

更新时间:2023-02-16 09:52:46

首先,必须在包括.NET Framework 2.0的控制面板的"Windows功能"选项卡中启用.NET Framework 3.5.否则,您将无法定位这些框架.

First of all, you have to enable .NET Framework 3.5 in the "Windows Features" tab of the control panel, which includes .NET Framework 2.0. You won't be able to target those frameworks if you don't.

然后,您将在项目属性面板中看到一个"Target Framework"属性,将其设置为.NET Framework 2.0.

Then, you'll see in the project properties panel a "Target Framework" property, set it to .NET Framework 2.0.