In this article, we will learn how to create a console application and a web application using ASP.NET Core and how to publish the application on a local system.
What is ASP.NET Core?
ASP.NET Core is a new and open source version of ASP.NET Core, released by Microsoft. It is a cross-platform web framework to build applications which can be run on different platforms like Windows, Mac, and Linux.
Why ASP.NET Core?
- It supports cross-platform.
- It is faster and simplifies modern web app development.
- It provides in-built support for IoC Container.
- It allows us to integrate with modern UI framework.
- Its hosting can be done on any server, like IIS, Apache, or self-hosting in our own process.
- It supports Side-by-Side app versioning.
Getting started with ASP.NET Core
If you don't have the latest version of Visual Studio, then you can download VS 2017. There are three editions for VS 2017. You can download a free version, i.e., VS 2017 Community Edition from the above link.
Create First Console Application In ASP.NET Core
Step 1
Step 2
Step 3
Step 4
Step 5
Yes, we are ready with our first console app in .NET Core.
Here is the output of our first console application in .NET Core.

How to create your first web application in .NET Core
Step 1
Step 2
Step 3
Step 4
Step 5
Step 6
How to publish a .NET Core Application
Step 1
Step 2
Step 3
Finally, the published code looks like the below screen. We can use the same file for hosting the app on IIS too.

Conclusion
Here, we are finished with the creation and publishing of a simple console and web application using .NET Core in a local environment.
I hope it will help.

Abed HijaziPosted May 20, 2019, 3:44 AM
Could we build windows apllication using MVC Core?