Empresas
Empregos
  • Sobre nós
  • Soluções
    • Publicação de vagas
      Publique sua vaga e receba candidatos qualificados em 48h.
    • Avaliações de candidatos
      Mais de 500 testes técnicos e psicológicos, mais anti-fraude.
    • Headhunting
      Busca executiva personalizada do início ao fim.
    • Folha de Pagamento + EOR
      Dispersão de folha e EOR em mais de 15 países da LATAM.
  • Preços
  • Empregos

0

507
Visualizações
Why isn't Blazor Hot Reload working as expected after a fresh install?

I wanted to try the hot relaod in Blazor .Net 6.

So I installed VS 2022 Preview with the latest .Net 6 Preview 7.

I started a clean new Blazor WASM, stared it (in debug mode) without any change, watched the result in the browser, made a simple change in the html and in the code, saved and click on the hot reload button (VS tells me that changed have been successfully applied) but there are no changes in the browser, not even if i reload the page (I have to recompile to see the changes).

I also tried in the console with dotnet watch, when I've made a change, the console said watch : File changed: XXX. watch : Hot reload of changes succeeded., but still no updates on the browser, even if I reload the page.

It acts like if there was no underlying recompilation or if Kestrel doesn't reload the newly created dll (but I've also tried IIS Express with no better results)...

When I watch some videos about it on Youtube, it seems to work without any other configuration, same on some blog posts.

What could be wrong?

over 4 years ago · Santiago Trujillo
1 Respostas
Responde à pergunta

0

You're probably running into this bug:
https://github.com/dotnet/aspnetcore/issues/35339#issuecomment-898706237.

... Unfortunately we had a last minute regression in the WASM runtime that crept in to our preview7 build which manifested as this error. This is resolved in our rc.1 builds. You could grab our nightly builds at https://github.com/dotnet/installer#installers-and-binaries to verify it's fixed.

enter image description here

You can follow that installer link and grab the rc1 build. You will also need a NuGet.config with the following:

<configuration>
  <packageSources>
    <add key="dotnet6" value="https://pkgs.dev.azure.com/dnceng/public/_packaging/dotnet6/nuget/v3/index.json" />
  </packageSources>
</configuration>

FYI, I ran into the same issue and this solved it for me about a week back.

over 4 years ago · Santiago Trujillo Relatório
Responde à pergunta
Encontrar trabalhos remotos

Descubra a nova forma de encontrar um emprego!

melhores empregos
Principais categorias de trabalho
Empresas
Postar vaga Preços Comercial
Jurídico
Termos e Condições Política de privacidade
© 2026 PeakU Inc. All Rights Reserved.
Andres GPT
Recomende algumas ofertas para mim
Preciso de ajuda