How to add Blazor Hot Reload
Вставка
- Опубліковано 21 жов 2024
- Learn how to add Hot Reload to your .Net Blazor Web Assembly application. In this video I show how to add Hot Reload so that the browser will automatically refresh your Blazor app with your new changes every time you save your code.
This is a great way to speed up your development, and is one of the biggest upgrades I found in the developer experience when writing Blazor Web Assembly programs.
I use this on an M1 Macbook using Jet Brains Rider. I haven't tested it in Visual Studio, but I'm fairly certain it works there too.
Github Repo
github.com/Scr...
Follow me on social media!
Twitter: / scriptbytesio
Instagram: / scriptbytes
Threads: www.threads.ne...
Check out my blog!
scriptbytes.io/
Thank you so much for this!😁
You have no idea how much time I've spend on trying getting hot reload to work 😀
Glad to help!
Thank you so much, you saved my day.
You are welcome, I'm glad it helped!
Thank you for the video👍
@For developers use window cli instead of using *dotnet run* we should use *dotnet watch* and then possibly when you make a change it will ask you to if you want to reload ? typing a means reload always then everything should be working without problem
how to on visual studio sir
This works, thanks mate
Cheers bro! You saved my hours
Glad I could help!
Could you also show how to make it work with mobile devices as well? I mean web, Mac, iOS and android in the same time
Thank you!!!
Danke!
Thank you very very much!
Is debug working for you during watch?
Sometimes. Debugging is really hit and miss. That’s my biggest complaint about Blazor
I'm using visual code, if I run w/ launch config of Watch, i get hot reload, no debugging. If I run w/ Https, i can debug, but not hot reload
I use c# for almost 15 year with win form. Few year with blazor, everything working perfectly, fast leaning. But now we change to js framework just 1 reason hot reload is suck
Ya most of the js frameworks have done a really good job of making hot reload fast and easy.
Life saver
Wow, I was searching for the last 3 hours for this. Insain that's it's not documented anywhere.
thank u