使用Visual Studio 2017的目标.NET Framework 2.0(不是.NET Core 2.0)
我想为使用.NET Framework 2.0的 Open Hardware Monitor 做贡献.而不是.NET Core 2.0).
I want to contribute to Open Hardware Monitor, which uses .NET Framework 2.0 (again, it is not .NET Core 2.0).
当我克隆存储库并打开解决方案文件时,Visual Studio 2017说我必须在
When I clone the repo and open the solution file, Visual Studio 2017 says I have to download some sort of "targeting pack" in this url. However, I cannot find the option to download .NET Framework 2.0. (the minimum version is 3.5 SP1.)
如何使用Visual Studio 2017定位.NET Framework 2.0?我不想下载并安装旧版本的Visual Studio.
How can I target .NET Framework 2.0 with Visual Studio 2017? I don't want to download and install older versions of Visual Studio.
首先,必须在包括.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.