Flash Sale:75% Off Hosting + Free DomainEnds in13h47m14sView Plans
Hostvento logoHostvento

Install ASP.NET on Windows

Install the .NET SDK, create a test web app and run it.

Windows Hosting2 min read7 steps6 screenshots

Step 1: Open the .NET download page

Go to the official .NET download page of Microsoft and choose the .NET SDK for Windows (x64). The SDK includes the ASP.NET Core runtime, which you need to build and run web apps.

The .NET download page

Step 2: Run the installer

Open the downloaded file and follow the wizard.

The .NET installer

Step 3: Finish the installation

Click Install and wait until the installer shows the success page. Then click Close.

The Microsoft .NET installation is complete

Step 4: Check the installation

Open a new Command Prompt or PowerShell and check the version:

dotnet --version

Create a test web app:

dotnet new webapp -o TestWebApp
Creating the test web app

Go into the folder and run it:

cd TestWebApp
dotnet run
Running the app

The output shows an address such as https://localhost:7000. Open it in your browser. The sample ASP.NET page appears.

The test web app in the browser

Features of ASP.NET

  1. Cross-platform. Runs on Windows, Linux and macOS.
  2. High performance.
  3. Built-in dependency injection.
  4. Modern development. Supports MVC, Razor Pages, minimal APIs and Blazor.
  5. Security. Features such as authentication, authorization and data protection.
  6. Real-time web apps with SignalR.
  7. Good tools and libraries, with Visual Studio and Visual Studio Code.

Host ASP.NET on a server

To host an ASP.NET Core app on IIS, install the ASP.NET Core Hosting Bundle on the server and publish your app with dotnet publish.

Quick recap

  • Install the .NET SDK.
  • Check with dotnet --version.
  • Create and run a test app with dotnet new webapp and dotnet run.