---
title: "Running Vite with ASP.NET Core Web Applications"
url: https://daily.dev/posts/running-vite-with-asp-net-core-web-applications-9ncfpgony
source_url: https://khalidabuhakmeh.com/running-vite-with-aspnet-core-web-applications
type: article
source: "Khalid Abuhakmeh"
published: 2026-05-31T07:45:32.572Z
updated: 2026-05-31T09:08:00.249Z
tags: ["typescript", "c#", "vite", "aspnetcore"]
reading_time: 6
upvotes: 0
comments: 0
language: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# Running Vite with ASP.NET Core Web Applications

**[Khalid Abuhakmeh](https://daily.dev/sources/khalidabuhakmeh)** · 6 min read · 0 upvotes · 0 comments

## Summary

A step-by-step guide to integrating Vite's development server with ASP.NET Core using the Vite.AspNetCore NuGet package. Covers project structure setup, configuring vite.config.ts to use ASP.NET Core's HTTPS certificate, appsettings configuration, middleware registration in Program.cs, and connecting the Razor layout to Vite's HMR dev server. Also notes caveats around initial page load timing, Sass HMR imports, and excluding wwwroot from source control.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://khalidabuhakmeh.com/running-vite-with-aspnet-core-web-applications>

---

Tags: [#typescript](https://daily.dev/tags/typescript), [#c#](https://daily.dev/tags/c#), [#vite](https://daily.dev/tags/vite), [#aspnetcore](https://daily.dev/tags/aspnetcore)

[View this post on daily.dev](https://daily.dev/posts/running-vite-with-asp-net-core-web-applications-9ncfpgony)
