❔ How to run a c# file
Hey, I know this is probably the basics but I just started. I'm having trouble starting the file and checked tutorials but I'm not sure can sm help
21 Replies
You can't run a singular cs file
I know you have to compile it
But like idk much
You have to have first created a project using
dotnet new
Oh ok
This is the bare minimum for a working app
Does this look right to you?
That looks alright
Nice it printed!
thank you so much
np
Btw for c or cpp idk if you guys support that but would the process be the same or are they more complex?
C and C++ have nothing to do with C#
alrighty
I don't know a lot about either but from my limited knowledge they are more complex
ok
if you can don't do C
c is pain to work with and for no reason
there is a reason
minimal overhead
ok but counterpoint c++ is usually fine for most purposes and has strings and stuff which make a huge difference to QOL
c has also strings....
the main difference is classes
c++ is OOP oriented, c is not
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.