C
C#3y 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
Jimmacle3y 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
Lep3y 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
eh3y ago
Try making main public static. Not entirely sure
Marcoona
MarcoonaOP3y ago
VS code oh ok it works now, thanks!
Accord
Accord3y 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.

Did you find this page helpful?