DEV Community

KeigoNakano
KeigoNakano

Posted on

Working with C# in VS Code.

What can C# can do?

  1. Application development(Xamarin)
  2. Game development(Unity, UnrealEngine)
  3. Web application development C# can be used universally.

Getting started guide with official documentation

Install

  1. Install C# Dev Kit from the Visual Sdudio Marketplace.→C# extension is installed automatically.
  2. Sign in with Microsoft to use Dev Kit Image description
  3. Install .Net Coding Pack from official document(https://code.visualstudio.com/docs/csharp/get-started)
  4. Open folder
mkdir hello
cd hello
code .
Enter fullscreen mode Exit fullscreen mode

Create a Hello World app

  1. Create a Hello World app by using the terminal

    1. Open a terminal/command prompt and navigate to hello/.
    2. Enter the following command in the command shell

       dotnet new console
      
    3. Run the app by entering the following command in the command shell:

       dotnet run
      
  2. The resulting output to the terminal is "Hello, World!"

Top comments (0)