Visual Studio thinks im running WSL when im not

Jon Jones 31 Reputation points
2022-08-04T06:26:11.997+00:00

Since today Visual Studio has set the run profile or whatever to WSL which I do not have and never installed. Im on windows 10. It happened after I installed Git. I dont know how to correct it

Developer technologies | Visual Studio | Other
{count} vote

Accepted answer
  1. satya karki 996 Reputation points MVP
    2022-08-04T11:22:55.943+00:00

    Hi @Jon Jones ,
    It will be better if you provide the exact error/warning message.
    Is it happening to all console applications or only one?

    However, can you check for the run option is selected for WSL like below? If it is selected to WSL then change it to your project name. Then clean and build the solution and try running.

    228093-image.png

    1 person found this answer helpful.

2 additional answers

Sort by: Most helpful
  1. Shobhit vaish 96 Reputation points
    2022-09-29T13:27:16.207+00:00

    Please delete the 'launchSettings.json' file in the console project, and you should be good to go.

    7 people found this answer helpful.

  2. Santiago 0 Reputation points
    2024-08-28T13:47:24.9933333+00:00

    The problem is that for some reason Visual Studio is including a WSL option in launchSettings.json, just removing it makes the WSL debug profile dissapear.


Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.