Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Target .NET Framework 2.0 (not .NET Core 2.0) with Visual Studio 2017

I want to contribute to Open Hardware Monitor, which uses .NET Framework 2.0 (again, it is not .NET Core 2.0).

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.)

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.

like image 913
sohnryang Avatar asked Jul 27 '18 12:07

sohnryang


People also ask

Is .NET Core available in VS 2017?

Visual Studio 2017 Support for . Among the workloads and project types, you can find support for . NET Framework, . NET Core, Mono, and . NET Native for Universal Windows Platform (UWP).


1 Answers

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.

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

like image 52
BgrWorker Avatar answered Oct 02 '22 14:10

BgrWorker