Skip to main content

Posts

Showing posts from February, 2018

Run Your First .Net Core 2.0 Console Application in Windows10 Docker

Problem How to run my first .net core 2.0 console application in windows10 docker? Background    This exercise is for beginners who want to understand Docker fundamental tenets and run their first .net core 2.0 application in windows10 docker. Solution Prerequisites  Use the below link to setup docker on your Windows10 laptop/desktop. https://docs.docker.com/docker-for-windows/install/ Steps 1. Create new " Console App (.Net Core) " project using " File >> New >> Project " menu. 2. It creates a new project ( CoreHelloWorld ) with " Program.cs " class with the following lines of code. Execute the project and make sure it works.  😀 3. Make sure docker is running in " Windows Container " mode on your machine. If not, then switch to "Windows Container" 4. Now your application must be packed with its dependencies into a folder for deployment. You may do this with two options.      ...