C
C#12mo 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 McCheese12mo ago
What is the contents of your solution file? Hint: look at it in notepad Or other plain text editor
Novascar
NovascarOP12mo ago
Here
No description
Mayor McCheese
Mayor McCheese12mo ago
That's an empty solution file for sure What are you trying to do?
Novascar
NovascarOP12mo 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 McCheese12mo 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
NovascarOP12mo ago
i tried, but still, 0 projects...
Mayor McCheese
Mayor McCheese12mo ago
Do you have windows terminal installed?
Novascar
NovascarOP12mo ago
Nope. Why?
joren
joren12mo 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
joren12mo ago
No description
Mayor McCheese
Mayor McCheese12mo 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
Angius12mo 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
NovascarOP12mo ago
I tried adding project manually, this is what I get:
No description
Angius
Angius12mo 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
NovascarOP12mo ago
No description
No description
No description
Angius
Angius12mo ago
Well, you have no .NET 8 SDK installed You have no SDK installed at all
Novascar
NovascarOP12mo ago
So i just need to install it? Thanks!
Angius
Angius12mo ago
It should do the trick, yeah
Novascar
NovascarOP12mo ago
Eh, i tried, still nothing Doesn't detects it or something
Novascar
NovascarOP12mo ago
Even more, I had it already
No description
Novascar
NovascarOP12mo ago
No description
Angius
Angius12mo ago
dotnet --info? dotnet --list-sdks?
Novascar
NovascarOP12mo ago
All the same
MODiX
MODiX12mo 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
NovascarOP12mo ago
Well... I can add projects now but other problems are still here Alright, problem solved. Thanks everyone who helped me!
Want results from more Discord servers?
Add your server