A Startup Template for ASP.Net Core and Vite project
- Integrating Asp.Net Core and Vite.
- Support frontend app HMR
- Support HTTPS
- Auto build and publish frontend app when publishing backend app
- 9 templates -- both Vue and React (JS and TS)
Vue + TypeScript | Vue | React + TypeScript | React | |
---|---|---|---|---|
Asp.Net Core MVC 5 | O | X | X | X |
Net 6 Use Controllers | O | O | O | O |
Net 6 + Minimal API | O | O | O | O |
VS marketplace : https://marketplace.visualstudio.com/items?itemName=MakotoAtsu.AspNetCoreViteStarter
- Install this extension in your VS2019 or VS2022 (download from web page or use VS extension manager)
- Create a new project and choose 1 template
- Press F5 to run both backend and frontend server
- Hit button to fetch data from the backend
6. Frontend app will auto-build when you publish the backend app
Just create a new Vite template and replace all content in the ClientApp folder