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.
@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.
2. Select modify in the VS2022 instance.
3. Go to the Individual Component tab.

4. Select .net core 3.1(LTS) and click install
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