I recently upgraded from .Net 7 to .Net 8. My application runs fine locally but when I deploy to Azure, I get two Warnings in the browser console:
MONO_WASM: the version of dotnet.runtime.js is different from the
version of dotnet.js in file dotnet.runtime.8.0.7
and
MONO_WASM: the version of dotnet.native.js is different from the
version of dotnet.js in file dotnet.runtime.8.0.7
and the error:
Failed to find a valid digest in the integrity attribute for resource
_framework/dotnet.native.wasm with computed SHA-256 integrity. the resource has been blocked.
I have tried clearing all caches, cleaned and rebuilt the app, manually deleted all obj and bin folders (in the Client, Server and Shared project files). My application should be targeting 8.0.2. In the root of the solution I added global.json file that has:
{
"sdk": {
"version": "8.0.201"
}
}
I am not sure why it is generating dotnet.runtime.8.0.7 or if that is even the reason for the warnings and errors. Can anyone provide guidance on how to resolve this?