Coding Shorts: Hosting SPAs in ASP.NET Core

preview_player
Показать описание
I've been talking with clients for a long time about hosting a SPA (e.g. Vue, Angular, React, Svelte, etc.) in ASP.NET Core projects. I've tried a lot of approaches and in this video, I show you how I got there and what I think you should be doing now.

UPDATE:
I did find out that the dual-StaticFiles is not the right approach. To get asp-append-version working, please see the subsequent blog post:

If you like this video, you might like other videos in my Instructional Videos:

Or my Pluralsight Courses:

Рекомендации по теме
Комментарии
Автор

Dear Sir, I would like to express my sincere appreciation for the valuable information you shared with us. Your presentation was truly remarkable and provided me with a wealth of knowledge that I found extremely useful. I am grateful for the opportunity to have learned from your expertise.

waelhabbal
Автор

Awesome content as always @swildermuth! Very helpful.

BrianNoyes
Автор

Hello Shawn, i took some of your courses on pluralsight in the past and i should say they were great. Your way of expanding the topic and progressing nicely and also you voice somehow helps a lot.. I see from this video that nothing changed. It is still very good to learn from you... I met this video while looking for a similar setup that I want to use for some pet project at home. The only difference is I want to host all this in a windows service. which i know is doable too :) thank you..

mustafadu
Автор

Very Thanks man! You save my life! Hugs from Brazil.

gustavomaidana
Автор

This is really nice because you don't have to muck about with build folders in odd places. What was the issue with using Vue's cache busting?

jamesmclachlan
Автор

Hi Shawn,
Wonderful tutorial.
Have you got a tutorial on MsBuild specific to various DevOps issues encountered in the production build of integrating client and dotnet6 API services? e.g using Tailwindcss in razor pages build, etc

ukaigwechidi
Автор

Thank you for your content, do you know how to use a spa react app inside a link into the a razor page? i saw that there is a SpaServices

ozzolim
Автор

Hi Shaw BFF appears to be the talk of the town just now. I would keen to hear your thoughts around Microsoft Identity when securing various SPAs. Are you always integrating like you are here so you don't have tokens in the browser? Do you feel it is an acceptable risk etc?

daviddevon
Автор

Hi Shawn,
Great lesson you have here.
Please how can l integrate this in an Asp.Net core 6 web api project without and index file?

codeplayandlearn.
Автор

Not a fan of the new Spa Proxy in Asp.Net 6?

pilotboba
Автор

What happened to UseSpaStaticFiles?
Will front end routing work with this technique?

hudo
Автор

Will this work if my site has its own routing?

jerryjeremy