In my organisation. we use VS 2019 version 16.11.21. When I clicked on API template or even ASP.net MVC Core web app, it only shows 3.1(out of support). I know now .net 5.0 is also out of support but in CS 2019, .net 6.0 is not working. When I tried changing the target framework to 5.0 from properties and ran the web app, it gave me the following error.
My home VS has Version 16.11.25. It shows me .net 5.0.
I have to create a API. Should I create the API in .net 3.1? Would it be a issue if I choose this version? But I don''t seem to have any other option.
C#:
"HTTP Error 500.31 - Failed to load ASP.NET Core runtime
Common solutions to this issue:
The specified version of Microsoft.NetCore.App or Microsoft.AspNetCore.App was not found.
My home VS has Version 16.11.25. It shows me .net 5.0.
I have to create a API. Should I create the API in .net 3.1? Would it be a issue if I choose this version? But I don''t seem to have any other option.