• Home
  • About
  • Contact
  • ado.net
  • angular
  • c#.net
  • design patterns
  • linq
  • mvc
  • .net core
    • .Net Core MVC
    • Blazor Tutorials
  • sql
  • web api
  • dotnet
    • SOLID Principles
    • Entity Framework
    • C#.NET Programs and Algorithms
  • Others
    • C# Interview Questions
    • SQL Server Questions
    • ASP.NET Questions
    • MVC Questions
    • Web API Questions
    • .Net Core Questions
    • Data Structures and Algorithms

Monday, August 17, 2020

ASP.NET Core Environment Setup

 Admin     August 17, 2020     .Net, .Net Core, Asp.Net, C#     No comments   

In this article, I am going to discuss the ASP.NET Core Environment Setup required for developing ASP.NET Core application. Please read our previous article before proceeding to this article where we gave a brief overview of the ASP.NET Core Framework. In order to develop the ASP.NET Core application, the following two software is required to install in your machine.
  1. Integrated Development Environment (IDE)
  2. .NET Core SDK (Software Development Kit)
The ASP.NET Core is a part of .NET Core SDK, so you don’t require to install it separately.

Download and Install an editor (IDE) for .NET Core Development
In my machine, I have windows operating system. So, I am going to use Visual Studio as my editor or you can say Integrated Development Environment for developing the ASP.NET Core application. But this is not mandatory. You can use any editor as per your choice. Some of the Editors are as follows
  1. Visual Studio
  2. Sublime
  3. Visual Studio Code
  4. Vim
  5. Atom, Etc.
Download and install Visual Studio
The Visual Studio Community Edition is free. As of this article, the latest version of Visual Studio is Visual Studio 2017 and it can be downloaded from the following site

https://visualstudio.microsoft.com/

To develop .NET Core applications in Visual Studio 2017 we need .NET Core cross-platform development. So while you are installing the Visual Studio please select .NET Core cross-platform development workload as shown in the below image.
ASP.NET Core Environment Setup - .Net Core cross-platform development

If you already installed the Visual Studio 2017, then make sure the above .NET Core cross-platform development is installed. If not installed then you just install this by using Visual Studio Installer.

By default with this .NET Core cross-platform development, the .NET Core SDK 2.1 is installed. You can also verify this by creating a new ASP.NET Core application.

Creating ASP.NET Core Application:
Open Visual Studio. Then select File => New => Project as shown in the below image.
ASP.NET Core Environment Setup - Creating Project

In the “New Project” window, from the left pane select “.NET Core” which is under the “Visual C#” which is under the “Installed” template section. From the middle pane select ASP.NET Core Web Application. Finally, click on the “OK” button as shown in the image below.
ASP.NET Core Environment Setup - Creating ASP.NET Core Application

Once you click on the OK button, then it will open the select template section. Here you can observe that the ASP.NET Core 2.1 is installed by default as shown in the below image.
ASP.NET Core Environment Setup - Checking ASP.NET Core Version

As of this writing, the latest stable version of .NET Core is 2.2 and you can verify this by visiting the following site.

https://github.com/dotnet/core/blob/master/release-notes/download-archive.md

Download and install .NET Core SDK
In order to download the .NET Core SDK latest version, please visits the following side. Then depending on your operating system installed on your machine download the appropriate .NET Core SDK and install it.

https://dotnet.microsoft.com/download

Here you will find two things as shown in the below image
ASP.NET Core Environment Setup - Downloading .NET Core SDK and Run Time

If you want to develop and run the .NET Core application, then you need to download the .NET Core SDK. The .NET Core Runtime is required only to run .NET Core applications.

The .NET Core SDK contains the .NET Core Runtime. So, if you installed the .NET Core SDK, then there is no need to install .NET Core Runtime separately. The .NET Core Runtime just contains the resources or libraries which are required to run existing .NET Core applications.

Once you installed the .NET Core SDK 2.2, create a new .NET Core Application. Now you can see that the ASP.NET Core 2.2 along with other versions in the .NET Core dropdown list as shown in the below image.
ASP.NET Core Environment Setup - ASP.NET Core 2.2

In the next article, I will discuss Creating First ASP.NET Core Web Application using Visual Studio step by step. Here, in this article, I discussed the ASP.NET Core Environment Setup required for developing ASP.NET Core application. I hope you enjoy this article.

Summary:
I hope this post will be helpful to understand the concept of ASP.NET Core Environment Setup
Please share this post with your friends and colleagues.
For any queries please post a comment below.
Happy Coding 😉
  • Share This:  
  •  Facebook
  •  Twitter
  •  Google+
  •  Stumble
  •  Digg
Newer Post Older Post

0 comments:

Post a Comment

If you like this website, please share with your friends on Facebook, Twitter, LinkedIn.

Join us on Telegram

Loved Our Blog Posts? Subscribe To Get Updates Directly To Your Inbox

Like us on Facebook

Popular Posts

  • What is Dependency Injection(DI)
    Hi friends! Today we are going to learn about Dependency Injection and in our last session we have come across Static classes and where it s...
  • C# Programming Examples on Sorting
    Today i am going to tell you some of the Sorting programming questions in C#. Q1- Write a C# program to perform Selection sort. Ans:  Sel...
  • Calling Web API Service in a Cross-Domain Using jQuery AJAX
    In this article, I am going to discuss Calling Web API Service in a Cross-Domain Using jQuery AJAX . Please read our previous article befor...
  • ViewBag in ASP.NET Core MVC
    In this article, I am going to discuss the use of ViewBag in ASP.NET Core MVC application with examples. Please read our previous article ...
  • Recursion And Back Tracking
    In this article, I am going to discuss Recursion And BackTracking in detail. Please read our previous article where we discussed Master Th...
  • What is Abstract Class and When we should use Abstract Class
    Hi friends! In our previous sessions we have seen  Difference Between Class and Struct . And in our last session  we learnt Usability of Sec...
  • Binary to Decimal Conversion in C# with Examples
    In this article, I am going to discuss the Binary to Decimal Conversion in C# with some examples. Please read our previous article where w...

Blog Archive

Contact Form

Name

Email *

Message *

Tags

.Net .Net Core .Net Core MVC Algorithm Angular Anonymous Types Asp.Net Asp.Net MVC Blazor C# Data Structure Database Design Patterns Entity Framework Entity Framework Core Filters Interview Question Management Studio Programming Programs SQL Server SSMS Web API

Copyright © C# Techtics | All Right Reserved.

Protected by Copyscape