Abhik's Blog

Running Dot Net Core outside MS ecosystem - 1

April 13, 2020

Create a Repo

  1. Using github for creating my repo , even though Github is a part of Microsoft , it still does not fall into my typical day to day flow .
  2. As of writing, sadly I was not able to get a gitgnore in the list of github .gitignore so we will initialize the repo with just a readme
  3. You can find the repository here

Create an asp.net core app

  1. Clone the app
git clone git@github.com:abhikmitra/dotnet-outside-ms.git
  1. I will be using Visual Studio 2019 as my preferred editor
  2. Our stack will be ASP.NET Core 3.1 on .NET Core so that it is cross platform. I will start of with a Simple API template.
  3. I am not selecting the the “Enable Docker Setup” as I want to do that myself. I have named the solution BackendApp and the project is BackendAPI
  4. Since Github doe snot have a .gitignore template for dot net apps, we are gonna use this .gitignore. This might not be enough , we will see.
  5. The app is going to expose one endpoint called api/environment/iscontainerized. The controller checks for the environment variable “containerized” and returns if its true or false. If you run the app , it should return false.

End State: The repo at the end of Part 1