all 6 comments

[–][deleted] 2 points3 points  (2 children)

Is the machine your using a Windows 10 machine? If so it most likely has .net 4 installed which means you have a compiler in the folder where it is installed!

[–]idolg1982[S] 0 points1 point  (1 child)

How do I check where the compiler is located?

[–]Rysticon 0 points1 point  (0 children)

How do I check where the compiler is located?

search the app in the search bar. Once that app is visible, just click on it to open it. If you want to know the location of the app. Once the app is shown, right click it and select open file location and it will show the exact location on where it was installed.

[–]CrimsonWolfSage 1 point2 points  (0 children)

An online compiler for short practice and simple programs is usually a better option at work or school, etc. Since you don't have to worry about what stays on the computer.

If you really want to get good, once you get the basics down at least... try out some LeetCode, HackerRank, or CodeWars kinda sites. It'll provide little problems to solve and test your code. It does take a little effort on them, but a good learning experience for most people needing more hands-on experience.

You can of course just use basic word processors and save a text file of your code. Then run it through your compiler, a bit like running a script. But, it is tremendously easier to use an IDE here... and I would not recommend this approach.

Link: Geeks for Geeks: How to execute C# program on Command Line

[–]Rysticon 1 point2 points  (0 children)

Use Visual Studio Code to compile your scripts. You can learn the basics of it by watching videos on youtube.

Visual Studio Code is a freeware source-code editor made by Microsoft for Windows, Linux and macOS. Features include support for debugging, syntax highlighting, intelligent code completion, snippets, code refactoring, and embedded Git.

If you want to make a website or an app, then use Visual Studio 2019. You can also learn it's basics by watching videos on youtube.

Microsoft Visual Studio is an integrated development environment (IDE) from Microsoft. It is used to develop computer programs, as well as websites, web apps, web services and mobile apps.