Skip to content
Sign upLog in
← Back to Community

How to run C# in vusial studio code.

Profile icon
softwarenginner

To order to run the c# code vusial studio code is you need to download the .NET in to your computer. I am doing through the macbook pro. But I don't know about windows. And after you open and install it. Open your terminal. And write dotnet. if things or stuff came out. Good you did it. Or else something went wrong. Later open your code in vs code. And write dotnet run and write your file name. FOR EXAMPLE: dotnet run Repl.it and it should be running.

Note: if you are doing thought the macbook own app other than using vs code terminal. You need to do is cd desktop go to your file where you save your code. Then inside that file write dotnet run Repl.it.

NOTE: dotnet run Repl.it is just an example. you need to do is dotnet run (your file name)

THANK YOU

Voters
Profile icon
NicolasBarreto4
Profile icon
softwarenginner