You need to be a premium member to use this feature. To access it, you'll have to upgrade your membership.
Become a sharper developer and jumpstart your career.
$0
$
. 00
monthly
For Basic members:
$10
For Premium members:
This article is mainly for the command prompt lovers who want to use it to launch their web application build on .Net Core.
In this article, I’ll be giving a walkthrough on how to create a console application and changing that into a web application. Or in other words, invoking a web application from a .NET core console application. And that too completely from the command prompt. If you are a command prompt lover, you may love it. So, let’s gear up and proceed step-by-step.
Verify .NET Core
If you are creating a .NET Core application for the very first time, then it is good to verify whether it is installed on the system or not and this can be done by typing a simple command dotnet --version as shown below.
Building and Running Console application
Next step would be to see the output from the console application and that can be done by run command, as shown below.
For any web application, first, we have to add dependency packages. So, let’s go ahead and add a reference to AspNetCore library from Nuget and that too via command line, as shown below.
Add Startup file for Web application
Hooking up the web application in console
Now we are all set to run our application.
Pro WPF: Windows Presentation Foundation in .NET 3.0