Error message "No distribution are installed" in Visual Studio Community 2022

Viewed 1891

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.

  1. Web Application(UI)
  2. Web Application(API)
  3. Class Library

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.

enter image description here

Please help me to resolve this issue.

Thank you in advance.

5 Answers

Faced a similar issue and was able to resolve this in a 2 step process

  1. Deleted the file launchSettings.json

  2. 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.

  • The following frameworks were found: 6.0.1 at [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]

You can resolve the problem by installing the specified framework and/or SDK."

I encountered similar error after accidentally deleting the default debug profile in console application. After comparing the original files with changed one I found Visual Studio created root\Properties\launchSettings.json file with one entry. After reverting the changes back(by removing the launchSettings.json file) the error message disappered

enter image description here

enter image description here

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" } }

I've solved this issue by creating a new profile:

  1. Click the down arrow next to execute button (WSL)
  2. Click Console Debug Properties
  3. Create a new profile
  4. Browse your project's directory
  5. Close the tab
  6. Click the down arrow again
  7. Select Profile

If, like me, you're searching for the solution this problem while thinking you don't have a launchSettings.json: verify that it isn't for sure caused by a launchSettings.json file under the project's Properties directory.

I thought I didn't have this file, but I had started VS as Administrator which did create the file suddenly but I wasn't aware of it since it was ignored in my .gitignore file! Deleting this launchSettings.json fixed it for me.

Related