Downgrade .NET 6 API to .NET Core 3

313 Views Asked by At

I cannot create a .NET Core 3 application using Visual Studio 2022. It is only showing .NET 6 and 7.

I want to publish this API on IIS server, which does not support .NET 6.

I tried to change the project version from in the properties or in the csproj file, but it causes errors.

1

There are 1 best solutions below

0
Selaka Nanayakkara On

@Tony B said .net core 3.1 has security concerns be mindful of that. But If you really want to downgrade your project, Follow these steps :

1. Open the Visual Studio installer. enter image description here 2. Select modify in the VS2022 instance. enter image description here 3. Go to the Individual Component tab. enter image description here

4. Select .net core 3.1(LTS) and click install enter image description here

After the above installation is done Optionally - proceed with machine restart.

Then open your project in visual studio 2022.

1. Goto Application properties and select target framework as .net core 3.1

enter image description here