C
C#2w ago
naoto

my program won't run in vs 2022, but it runs in an online compiler

can someone help me figure out what is wrong?
19 Replies
Marvin
Marvin2w ago
you would need to provide the error messages, and relevant code if its a compilation error of specific code passages
naoto
naoto2w ago
will do
naoto
naoto2w ago
No description
naoto
naoto2w ago
No description
naoto
naoto2w ago
exact same code in another compiler
No description
Kiel
Kiel2w ago
if you double click on the error it should take you to the exact line it's reporting the error on, or should at least state it - where exactly is it saying the error is occurring?
naoto
naoto2w ago
it says line 5
naoto
naoto2w ago
No description
naoto
naoto2w ago
bbut idk whats wrong with it
Kiel
Kiel2w ago
you could try $vsdrunk and see if that resolves the issue, my only other guess is that you haven't defined a namespace but I don't think that would cause an error as there's already clearly a warning/hint instead
MODiX
MODiX2w ago
* close VS * remove the hidden folder .vs * remove all bin and obj folder next to each csproj (DO NOT TOUCH THE .git FOLDER OR WHAT'S INSIDE) * restart vs
Marvin
Marvin2w ago
also if you copied the code from a web editor, try remove that { and write it manually again
naoto
naoto2w ago
I didn't I wrote it myself? I have no clue what that is.. oh nvm wait the hidden folder ??
Kiel
Kiel2w ago
You might have to enable showing hidden files Not at my PC so can't post a screenshot sorry
naoto
naoto2w ago
ah ill try
Want results from more Discord servers?
Add your server