C
C#3y ago
wildREA

❔ ✅ [RESOLVED] Unavailable Start without Debugging

I recently reinstalled Visual Studio and now I have this problem. I cannot click it or even use the shortcut.
25 Replies
Angius
Angius3y ago
Did you open the solution/project or a folder of files/one loose file? This issue usually occurs when you opened something that isn't runnable
wildREA
wildREAOP3y ago
I opened a new project to test, so yes I only have a new project with a simple hello world test, nothing else
Angius
Angius3y ago
Do you see the solution browser to the side?
wildREA
wildREAOP3y ago
Yeah, I see it
Angius
Angius3y ago
Weird there's no option to start it, then... Did you create a console project, or a class library?
wildREA
wildREAOP3y ago
A console project
Angius
Angius3y ago
Huh .NET Framework, or current .NET version? If the latter, we can try starting it from the command line to see if it even works
wildREA
wildREAOP3y ago
6.0 Runtime I have tried 7.0 Runtime, no difference
Angius
Angius3y ago
Aight, current LTS, then Open console or Powershell Navigate to the location of your project Then try running it with dotnet run See if that works
wildREA
wildREAOP3y ago
I could not run it It's probably because it found no .NET SDKs
Angius
Angius3y ago
Could you run dotnet --list-sdks command?
wildREA
wildREAOP3y ago
No, it's linked with dotnet
Angius
Angius3y ago
What do you mean "linked with dotnet"?
wildREA
wildREAOP3y ago
It does not work, it's probably because of it being a dotnet command
wildREA
wildREAOP3y ago
If you wanna see the error, here it is
wildREA
wildREAOP3y ago
I've never encountered this before Maybe I might have, but I do not remember at all
Angius
Angius3y ago
You wrote dotnet --list sdk Not dotnet --list-sdks
wildREA
wildREAOP3y ago
I tried both
Angius
Angius3y ago
Aight
wildREA
wildREAOP3y ago
Angius
Angius3y ago
That tells me you might've installed the runtime instead of the SDK
wildREA
wildREAOP3y ago
That might be the case, I will check the .NET site to download the SDK I did not install the SDK, but it made no difference To be specific, I downloaded the .NET 6.0 SDK (v6.0.403) - Windows x64
Angius
Angius3y ago
Does dotnet run not work?
wildREA
wildREAOP3y ago
Nope Fixed the problem Uninstall all .NET Runtime versions/SDKs, and the reinstall the version you want. Same goes for fully reinstalling Visual Studio
Accord
Accord3y ago
Was this issue resolved? If so, run /close - otherwise I will mark this as stale and this post will be archived until there is new activity.

Did you find this page helpful?