❔ I want to start coding in C# but in visual studio 2019 i can only attach not debug the code
Can anyone help me with debuging the code?
32 Replies
Did you open a project or just a loose
.cs
file?project
im guessing thats the problem
No, that's good
oh
Could you show the screenshot of the solution explorer, or even just the whole VS window?
like this?
Ah, I see the issue, I think
No clue why, but it happens surprisingly often. The solution has no projects associated with it
Right-click the solution, add existing item, and point towards the
.csproj
file of your projectuhhh
Ah, well, seems like you might not have the correct SDK installed... somehow
VS should install it all for you, odd
What framework version does the project need? It's in the
.csproj
filewait how do i check it?
Open the
.csproj
file with Notepad or whateverOhhh
okay
just gotta find the path
It's exactly where you put it
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net5.0</TargetFramework>
</PropertyGroup>
</Project>
net5.0
Right, a three years old version... somehow
hold up
should i use 2022 version?
Well, yes, preferably
No reason to stay in the past
...
ok well
VS 2022
.NET 7
C# 11
Those are the current versions
Later this year, in a couple of months, it'll be .NET 8 and C# 12
bruh vs 2022 is not responding when i open or create a project
nevermind
oh great
i dont have c# installed on the 2022 version
that will take a while to install 🙃
@angius are you from Poland?
Sure am
What gave it away?
yt channel
thats polish
Ah lol
Still one of my best videos, apparently
lmao
you might have noticed polish text on the screenshot what i sent
im from Poland too
never thought that would happen
"Odnistalowywanie"
Honestly, didn't pay much attention to the language, I just looked for that missing project under the solution lol
yeah makes sense if you wanna help lol
oh great...
a 1.70 gb update
somehow i gained 5 gb of space on my laptop
alright soo
i have installed the newer version of vs and now i can debug
thank you for actually saying something about the version of the vs what i was using being old
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.