❔ 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
What have you tried? Does F5 make it go?
Are there errors?
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
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.
I’m fairly color blind so I don’t pay attention to colors very much
Try making main public static. Not entirely sure
VS code
oh ok
it works now, thanks!
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.