user14870069
user14870069

Reputation:

How can I use old version of .Net in Visual Studio 2022?

I want to use .Net Core 3.1 SDK but Visual Studio doesn't let me use it. In the independent compenents section, I have to select .Net SDK for running the program but if I select that .Net 6.0 installing immediately. How can I convert that into 3.1?

Upvotes: 5

Views: 10041

Answers (2)

TheDonAG
TheDonAG

Reputation: 11

Just choose an available framework from the dropdown, for example .NET 5.0 and in the Solution Explorer right click and Unload the project. Edit the project file (.csproj) and manually change the framework number and Save. Then right click and reload the project.

Upvotes: 1

tancodes
tancodes

Reputation: 112

  • Open Visual studio installer from start menu
  • Select Modify from Visual Studio that you want to add
  • In individual components select .net core or framework that you want to add to your visual studio version

image 1

image 2

Upvotes: 8

Related Questions