Running Dot Net Core outside MS ecosystem - 1
April 13, 2020
Create a Repo
- 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 .
- 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
- You can find the repository here
Create an asp.net core app
- Clone the app
git clone git@github.com:abhikmitra/dotnet-outside-ms.git
- I will be using Visual Studio 2019 as my preferred editor
- 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.
- 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 isBackendAPI
- 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.
- 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