I'm facing an issue with Visual Studio Community 2022, I've 3 projects in my solution. All projects have target framework .NET 3.0.
I've set projects 1 and 2 as startup projects.
But now when I'm trying to run the project API project gets run successfully, but UI project not running, for the UI project Visual Studio giving an error.
Please help me to resolve this issue.
Thank you in advance.
Faced a similar issue and was able to resolve this in a 2 step process
Deleted the file launchSettings.json
Installed the compatible framework (in my case .NETCore 3.1.0)
Detailed Error message when receiving "Error Launching.."
"It was not possible to find any compatible framework version The framework 'Microsoft.NETCore.App', version '3.1.0' (x64) was not found.
You can resolve the problem by installing the specified framework and/or SDK."
I removed the WSL entry in launchSettings.json profiles and made sure the one entry I had was for the application.
"profiles" { "NameOfProject" : { "commandName": "Project" } }