C
C#14mo ago
Novascar

Visual Studio doesnt show errors and projects

Hey, I encountered a small issue with Visual Studio Community 2022 - it doesn't show projects in solution explorer, errors too, and instead of "Start" there is "Attach..." button. (F5 doesn't works, too) I tried reinstalling it and changing project location, but it doesn't help. There also seem to be no answer online and I barely understand why this happens.
No description
No description
26 Replies
Mayor McCheese
Mayor McCheese14mo ago
What is the contents of your solution file? Hint: look at it in notepad Or other plain text editor
Novascar
NovascarOP14mo ago
Here
No description
Mayor McCheese
Mayor McCheese14mo ago
That's an empty solution file for sure What are you trying to do?
Novascar
NovascarOP14mo ago
I'm trying to follow tutorials... Never had this problem with VS 2019 by the way And also snippets like cw doesn't work
Mayor McCheese
Mayor McCheese14mo ago
Try and right click on the solution and look for create/add project Nb: I don't know the exact wording I don't typically create projects outside the cli any longer
Novascar
NovascarOP14mo ago
i tried, but still, 0 projects...
Mayor McCheese
Mayor McCheese14mo ago
Do you have windows terminal installed?
Novascar
NovascarOP14mo ago
Nope. Why?
joren
joren14mo ago
just start a new solution and use one of the templates to create a project reset the layout of VS Studio to the default
joren
joren14mo ago
No description
Mayor McCheese
Mayor McCheese14mo ago
I was going to walk you through using the cli Which
Mkdir sample
Cd sample
dotnet new sln
dotnet new gitignore
dotnet new nugetconfig
dotnet new console -o Sample
dotnet sln add .\Sample
git init
Mkdir sample
Cd sample
dotnet new sln
dotnet new gitignore
dotnet new nugetconfig
dotnet new console -o Sample
dotnet sln add .\Sample
git init
Angius
Angius14mo ago
Whenever I see the project not added to the solution by default, it's always an issue with the order of .NET SDKs in the env variables. So make sure, than in your PATH variable, the 64-bit version of the SDK is above the 32-bit version (also, use VS 2022, it's not 2019 anymore)
Novascar
NovascarOP13mo ago
I tried adding project manually, this is what I get:
No description
Angius
Angius13mo ago
Aight 1. Check what SDK is necessary. Open the .csproj in Notepad or some such and take a look there 2. dotnet --list-sdks to see what SDks you have installed 3. dotnet --info for good measure. Post both results here
Novascar
NovascarOP13mo ago
No description
No description
No description
Angius
Angius13mo ago
Well, you have no .NET 8 SDK installed You have no SDK installed at all
Novascar
NovascarOP13mo ago
So i just need to install it? Thanks!
Angius
Angius13mo ago
It should do the trick, yeah
Novascar
NovascarOP13mo ago
Eh, i tried, still nothing Doesn't detects it or something
Novascar
NovascarOP13mo ago
Even more, I had it already
No description
Novascar
NovascarOP13mo ago
No description
Angius
Angius13mo ago
dotnet --info? dotnet --list-sdks?
Novascar
NovascarOP13mo ago
All the same
MODiX
MODiX13mo ago
Angius
So make sure, than in your PATH variable, the 64-bit version of the SDK is above the 32-bit version
React with ❌ to remove this embed.
Novascar
NovascarOP13mo ago
Well... I can add projects now but other problems are still here Alright, problem solved. Thanks everyone who helped me!

Did you find this page helpful?