Search
Get Started
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
?
C#
Join
We are a programming server aimed at coders discussing everything related to C# (CSharp) and .NET.
61,010
Members
View on Discord
Was this page helpful?
Yes
No
M
Mayor McCheese
•
4/6/23, 10:48 PM
What have you tried
? Does F5 make it go
?
M
Mayor McCheese
•
4/6/23, 10:48 PM
Are there errors
?
J
Jimmacle
•
4/6/23, 11:18 PM
is that VS or VS Code
? they
're different products
, that doesn
't look like default VS syntax highlighting
J
Jimmacle
•
4/6/23, 11:19 PM
if it
's the latter then i would guess you didn
't create a project
- you can
't run a standalone C
# file
L
Lep
•
4/6/23, 11:57 PM
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
.
M
Mayor McCheese
•
4/7/23, 1:02 AM
I
’m fairly color blind so I don
’t pay attention to colors very much
E
eh
•
4/7/23, 1:17 AM
Try making main public static
. Not entirely sure
J
Jimmacle
is that VS or VS Code? they're different products, that doesn't look like defaul...
M
Marcoona
OP
•
4/7/23, 8:34 AM
VS code
J
Jimmacle
if it's the latter then i would guess you didn't create a project - you can't ru...
M
Marcoona
OP
•
4/7/23, 8:36 AM
oh ok
M
Marcoona
OP
•
4/7/23, 9:01 AM
it works now
, thanks
!
A
Accord
•
4/8/23, 9:08 AM
Was this issue resolved
? If so
, run
/close
/close
otherwise I will mark this as stale and this post will be archived until there is new activity
.