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.
26 Replies
What is the contents of your solution file?
Hint: look at it in notepad
Or other plain text editor
Here
That's an empty solution file for sure
What are you trying to do?
I'm trying to follow tutorials... Never had this problem with VS 2019 by the way
And also snippets like cw doesn't work
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
i tried, but still, 0 projects...
Do you have windows terminal installed?
Nope. Why?
just start a new solution and use one of the templates to create a project
reset the layout of VS Studio to the default
I was going to walk you through using the cli
Which
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)I tried adding project manually, this is what I get:
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 hereWell, you have no .NET 8 SDK installed
You have no SDK installed at all
So i just need to install it? Thanks!
It should do the trick, yeah
Eh, i tried, still nothing
Doesn't detects it or something
Even more, I had it already
dotnet --info
?
dotnet --list-sdks
?All the same
So, doesn't see any SDKs?
https://discord.com/channels/143867839282020352/1183065455850696747/1183152584962355240 then
Angius
So make sure, than in your
PATH
variable, the 64-bit version of the SDK is above the 32-bit versionQuoted by
<@85903769203642368> from #Visual Studio doesnt show errors and projects (click here)
React with ❌ to remove this embed.
Well... I can add projects now but other problems are still here
Alright, problem solved. Thanks everyone who helped me!