ttmind

Main Navigation

ttmind
  • jim-jams
  • Tech
  • Positive
Login

Login

Facebook Google

OR

Remember me Forgot password?

Don't have account? Signup here.

Sort by Categorys

.Net

PHP

Java

JavaScript

Database

Server

Client Side

Tools

Artificial Intelligence

Cloud

Hybrid Development

Event

Smart City

Education

Security

Scrum

Digital Marketing

APP Development

Business

Internet

Simulation

Art

Network

Microservices

Architecture

Technology

Leadership

    Top Articles

  • How Does Social Media Bring People Together?
    TTMind Author
  • How to read appSettings JSON from Class Library in ASP.NET Core
    Anil Shrestha
  • Printing Support In Asp.Net Core
    TTMind Author
  • HOW TO EXTRACT TEXT FROM IMAGE USING JAVASCRIPT (OCR with Tesseract.js)?
    Prakash Pokhrel
  • Images Upload REST API using ASP.NET Core
    Prakash Pokhrel
  • Related Topic

  • How to read appSettings JSON from Class Library in ASP.NET Core
  • Printing Support In Asp.Net Core
  • Images Upload REST API using ASP.NET Core
  • How to use IActionFilter, IAsyncActionFilter in ASP.NET Core MVC?
  • ASP.NET CORE - Blazor CRUD operation using ADO.NET
  • Tech
  • About Us
  • Contact Us
  • TechHelp
  • PositiveHelp
  • Jim-Jams Help
  • Terms & Conditions

© Copyright ttmind.com

Main Content

Getting Started with Asp.Net Core with Visual Studio

.Net .Net Core about 8 years ago || 3/26/2018 || 1.4 K View

  • Hide

This Tutorial will help you to set up a web application in Visual Studio. At First You will need to set up Visual studio 2015 or higher version. For this you need to visit www.visualstudio.com. Run the installer and select the following workloads:

  • ASP.NET and web development (under Web & Cloud)
  • .NET Core cross-platform development (under Other Toolsets)

Now Set Up Will be Started. It can take 1 hours(approx.) depending on speed of Internet Connection.

After the Set Up is finished, open visual studio.exe whethe from the located disk or from the All Program Start Menu.

Here, I’m using Visual Studio 2017.

The Start Page look like this:

To Create the Web Application: -

  • Click on New in the left side of the Visual Studio.
  • Another Tab appears and Select Project.

Another Window appears then on the left side choose .Net Core.

  • Select Asp.Net Core Web Application (.Net Core) and provide an appropriate name for the project.
  • Tab Ok.

Now We need to select a template.

  • Here We are building a Web Application So Select Web Application.
  • On the right side we can change the authentication but for now we will stick to No Authentication.
  • Below Authentication there is a option to host our project in cloud. We will leave it in default.
  • Tab Ok.

The Visual Studio now will start to build a web application and  Start Page will appear with the name of your project on the top left of the Visual Studio.

  • In the Solution Explorer on the right side of Visual Studio consists of different code which we will talk about later.
  • Click On  IIS Express to run the project. It will build the Solution that means our project. If we had the errors in our code which we have not done it yet, Visual Studio will show us the errors and warnings or we can see them on View Tab on top tool bar and Select ErrorList.
  • Our Project opens in Google Chrome or whatever is our default Browser. Notice that the address bar shows localhost:port# and not something like example.com. That's because localhost is the standard hostname for your local computer. When Visual Studio creates a web project, a random port is used for the web server. In the image above, the port number is 2196. When you run the app, you'll see a different port number.
  • Launching the app with Ctrl+F5 (non-debug mode) allows you to make code changes, save the file, refresh the browser, and see the code changes. Many developers prefer to use non-debug mode to quickly launch the app and view changes.
  • You can launch the app in debug or non-debug mode from the Debug menu item:

 

  • 4
  • 0
  • 0
    • Facebook
    • Twitter
    • Google +
    • LinkedIn

About author

Prakash Pokhrel

Prakash Pokhrel

https://np.linkedin.com/in/prakash-pokhrel-42a699a2

Reset Your Password
Enter your email address that you used to register. We'll send you an email with your username and a link to reset your password.

Quick Survey