C
C#2y ago
Marcoona

❔ it doesnt run the code

hey, i wanted to learn C# and i tried running this code in visiual studio but it doesnt give a error message, just nothing. can someone help?
7 Replies
Mayor McCheese
What have you tried? Does F5 make it go? Are there errors?
Jimmacle
Jimmacle2y ago
is that VS or VS Code? they're different products, that doesn't look like default VS syntax highlighting if it's the latter then i would guess you didn't create a project - you can't run a standalone C# file
Lep
Lep2y ago
That does look like VS Code, on the top you should have a "Terminal" option, I would suggest opening it if you don't have anything, the output should go in there I believe.
Mayor McCheese
I’m fairly color blind so I don’t pay attention to colors very much
eh
eh2y ago
Try making main public static. Not entirely sure
Marcoona
MarcoonaOP2y ago
VS code oh ok it works now, thanks!
Accord
Accord2y ago
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.
Want results from more Discord servers?
Add your server