This is a template to make C#/.NET projects using Visual Studio Code.
- .NET Core SDK
- Visual Studio Code
- C# Extension
- And optionally the recommended extensions that are listed in the
.vscode/extensions.json
file.
- Clone this repository
- Open the folder in Visual Studio Code
- Open the
Program.cs
file - Press
F5
to run the project
Search for all occurrences of MyProject
and replace them with your own projects name.
src/
- Contains the source code for the project. Additional project directories should be added here.tests/
- Contains the xUnit test code for the project.docs/
- Contains the documentation for the project.- Consider following this gist when creating additional directories.
settings.json
- Contains required VSCode settings for the workspace.extensions.json
- Contains the recommended extensions for the project.omnisharp.json
- Contains the configuration for the C# extension..editorconfig
- Contains C#/.NET conventions and guidelines..gitignore
- Contains the default .NET gitignore.
dotnet test
- Runs the xUnit tests, or I recommend using the .NET Core Test Explorer extension.
dotnet new console
- Creates a new console app project.dotnet build
- Builds the project.dotnet run
- Runs the project.dotnet test
- Runs the xUnit tests.