how to run a asp.net core project code example
Example 1: dotnet core webapp
dotnet new webApp -o myWebApp --no-https
cd myWebApp
dotnet run
#Open Pages/Index.cshtml in any text editor and replace all of the code with the following,
#then save the file.
Example 2: dotnet core webapp
@page
@model IndexModel
@{
ViewData["Title"] = "Home page";
}
<div class="text-center">
<h1>Hello, world!</h1>
<p>The time on the server is @DateTime.Now</p>
</div>