Skip to content

mitchallen/csharp-container-101

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

csharp-container-101

Usage

This assumes you already have the Dev Containers extension installed in VSCode.

  1. Start Docker (on a Mac: open -a Docker)
  2. Open the project in Visual Studio Code (VS Code)
  3. Click: Reopen in Container
  4. Select: View / Terminal (may already be open)
  5. In the VSCode Terminal window run this command:
dotnet run

How this project was created:

  1. Create a project folder and cd to it
  2. Open the project in VS Code
  3. Open the Command Palette (Cmd+Shift+P on a Mac)
  4. Type in Dev Containers: Add Dev Container Configuration Files ...
  5. Select C# and go through the steps
  6. Press Reopen in Container when prompted
  7. Open up the VSCode Terminal window: View / Terminal on a Mac
  8. Create a new console project:
dotnet new console
  1. Run the project:
dotnet run
  1. Add a .gitignore file
dotnet new gitignore

References

About

An example of how to create a C# project in a Microsoft Dev Container

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages