Hello World with ASP.NET Core – Install ASP.NET Core steps

Hello World with ASP.NET Core – Install ASP.NET Core steps

In this Post We Will Explain About is Hello World with ASP.NET Core – Install ASP.NET Core steps With Example and Demo.Welcome on Live24u.com – Examples, The best For Learn web development Tutorials,Demo with Example! Hi Dear Friends here u can know to ASP.NET Core Hello World: Your First Program Example

In this post we will show you Best way to implement How to run Hello World with .NET, hear for ASP.NET Core: Introduction and Hello World example with Download .we will give you demo,Source Code and examples for implement Step By Step Good Luck!.




ASP.NET Core 1.0 Setup and Hello World Example

Recently latest release of Simple ASP.NET Core 1.0 is very and more promising. It’s all simple open source code and some cross-platform. So let’s simple try to create my first program Hello world.

Also Read :   Top 10 ASP.NET Interview Questions and Answers

Step 1 : Integrated Development Environment(ASP.NET Core)

First of all simple My favorite IDE is Visual Studio and We Will be using new Visual Studio 2015 Community some edition (It’s free). If you want to here and go any cross-platform you can step by step consider simple Visual Studio source Code After that works with Like as a Mac OS and Linux os. You can get both version here –Please Download Step By step Download Visual Studio.

vs-2015-update-3_thumb
vs-2015-update-3_thumb

Step 2 : .NET Core 1.0

The next Phase is simple step by step installation of .NET Core. The Simplest way to install .net core 1.0, is to use the simple or easy way to MSI. So if you are not working on any type of the os Windows machine you can use simple get here alternative installers. You can find all on any .NET Core website. And then is direct link to MSI installer of Latest version .NET Core 1.0.

Also Read :   Most Important SQL Server Interview Questions and Answers
Hello World with ASP.NET Core - Install ASP.NET Core steps
Hello World with ASP.NET Core – Install ASP.NET Core steps

Step 3 : ASP.NET Core Hello World

Last step and First Program, the most and easy interesting piece.

-Open first of all Visual Studio and create simple new project.
-Use ‘.NET Core’ select category
-now select the simple ‘ASP.NET Core Web Application’ new template.

Create-ASP-NET-Core-project_thumb
Create-ASP-NET-Core-project_thumb

And then Next select ‘Empty’ template.

asp-core-select-empty-template_thumb
asp-core-select-empty-template_thumb

Good Luck, run the liveApplication simple keyboard press (F5) and you should simple display following source code.

asp-core-run-hello-world_thumb
asp-core-run-hello-world_thumb

After that have a look at the core .net project to display how it hliveAppened. and then create some path Please have a look at simple Solution Explorer.

Also Read :   ASP.NET Page life cycle with Events
asp-core-run-hello-world_thumb
asp-core-run-hello-world_thumb

ASP.NET Core Hello World Example

You should Display Startup.cs AspNetCore file with following source code content.

//Add namespace
using System;
using System.Collections.Generic;
using System.Linq;
using System.Threading.Tasks;
using Microsoft.AspNetCore.Builder;
using Microsoft.AspNetCore.Hosting;
using Microsoft.AspNetCore.Http;
using Microsoft.Extensions.DependencyInjection;
using Microsoft.Extensions.Logging;

namespace AspNetCoreHelloWorld
{
    public class Startup
    {
 
		//ConfigureServices
        public void ConfigureServices(IServiceCollection services)
        {
			//some logic
        }

        public void Configure(IApplicationBuilder liveApp, IHostingEnvironment env, ILoggerFactory firstFact)
        {
            firstFact.AddConsole();

            if (env.IsDevelopment())
            {
                liveApp.UseDeveloperExceptionPage();
            }

            liveApp.Run(async (context) =>
            {
                await context.Response.WriteAsync("Wel-come to Live24u.com - Hello World!");
            });
        }
    }
}

You are Most welcome in my youtube Channel Please subscribe my channel. and give me FeedBack.
More Details……
Angularjs Example





Example

I hope you have Got What is ASP.NET Core 1.0 Setup and Hello World Example And how it works.I would Like to have FeedBack From My Blog(live24u.com) readers.Your Valuable FeedBack,Any Question,or any Comments about This Article(live24u.com) Are Most Always Welcome.