├── .gitignore ├── .gitlab-ci.yml ├── .gitpod.Dockerfile ├── .gitpod.yml ├── Program.cs ├── README.md └── dotnetcore.csproj /.gitignore: -------------------------------------------------------------------------------- 1 | *.swp 2 | *.*~ 3 | project.lock.json 4 | .DS_Store 5 | *.pyc 6 | nupkg/ 7 | 8 | # Visual Studio Code 9 | .vscode 10 | 11 | # User-specific files 12 | *.suo 13 | *.user 14 | *.userosscache 15 | *.sln.docstates 16 | 17 | # Build results 18 | [Dd]ebug/ 19 | [Dd]ebugPublic/ 20 | [Rr]elease/ 21 | [Rr]eleases/ 22 | x64/ 23 | x86/ 24 | build/ 25 | bld/ 26 | [Bb]in/ 27 | [Oo]bj/ 28 | [Oo]ut/ 29 | msbuild.log 30 | msbuild.err 31 | msbuild.wrn 32 | -------------------------------------------------------------------------------- /.gitlab-ci.yml: -------------------------------------------------------------------------------- 1 | image: mcr.microsoft.com/dotnet/core/sdk:latest 2 | 3 | stages: 4 | - build 5 | - test 6 | 7 | build: 8 | stage: build 9 | script: 10 | - "dotnet build" 11 | artifacts: 12 | paths: 13 | - bin/ 14 | 15 | test: 16 | stage: test 17 | script: 18 | - "dotnet test" 19 | -------------------------------------------------------------------------------- /.gitpod.Dockerfile: -------------------------------------------------------------------------------- 1 | FROM gitpod/workspace-dotnet:latest 2 | -------------------------------------------------------------------------------- /.gitpod.yml: -------------------------------------------------------------------------------- 1 | image: 2 | file: .gitpod.Dockerfile 3 | 4 | tasks: 5 | - name: Restore & Build 6 | init: | 7 | dotnet dev-certs https 8 | dotnet restore 9 | dotnet build 10 | - name: Run 11 | command: dotnet run 12 | 13 | vscode: 14 | extensions: 15 | - muhammad-sammy.csharp 16 | -------------------------------------------------------------------------------- /Program.cs: -------------------------------------------------------------------------------- 1 | using System; 2 | 3 | namespace dotnetcore 4 | { 5 | class Program 6 | { 7 | static void Main(string[] args) 8 | { 9 | Console.WriteLine("Hello World!"); 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # A .NET Core CLI template on Gitpod 2 | 3 | This is a [.NET Core CLI](https://docs.microsoft.com/en-us/dotnet/core/introduction) template configured for ephemeral cloud development environments on [Gitpod](https://www.gitpod.io/). 4 | 5 | ## Next Steps 6 | 7 | Click the button below to start a new development environment: 8 | 9 | [![Open in Gitpod](https://gitpod.io/button/open-in-gitpod.svg)](https://gitpod.io/#https://github.com/gitpod-io/template-dotnet-core-cli-csharp) 10 | 11 | ## Get Started With Your Own Project 12 | 13 | ### A new project 14 | 15 | Click the above "Open in Gitpod" button to start a new workspace. Once you're ready to push your first code changes, Gitpod will guide you to fork this project so you own it. 16 | 17 | ### An existing project 18 | 19 | To get started with .NET Core CLI on Gitpod, add a [`.gitpod.yml`](./.gitpod.yml) file which contains the configuration to improve the developer experience on Gitpod. To learn more, please see the [Getting Started](https://www.gitpod.io/docs/getting-started) documentation. 20 | -------------------------------------------------------------------------------- /dotnetcore.csproj: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | Exe 5 | net7.0 6 | 7 | 8 | 9 | --------------------------------------------------------------------------------