Replies: 1 comment
-
Using original assetsTo use original aspnetcore assets in projects created by bit Boilerplate: 1- In Client.Web/wwwroot/index.html, change the followings: <script src="_content/Bit.BlazorES2019/blazor.webview.js" autostart="false"></script> to the followings: <script src="_framework/blazor.webview.js" autostart="false"></script> 2- In Client.Maui/wwwroot/index.html, change the followings: <script src="_content/Bit.BlazorES2019/blazor.webassembly.js" autostart="false"></script>
<script src="_content/Bit.Bswup/bit-bswup.js" blazorScript="_content/Bit.BlazorES2019/blazor.webassembly.js"></script> to the followings: <script src="_framework/blazor.webassembly.js" autostart="false"></script>
<script src="_content/Bit.Bswup/bit-bswup.js" blazorScript="_framework/blazor.webassembly.js"></script> 3- Un-comment the followings in Client.Web/wwwroot/service-worker.published.js {
url: "_framework/blazor.web.js"
}, 4- In Server.Web/Components/App.razor, change the followings: <Script src="_content/Bit.BlazorES2019/blazor.web.js" autostart="false"></Script>
<Script src="_content/Bit.Bswup/bit-bswup.js" blazorScript="_content/Bit.BlazorES2019/blazor.web.js"></Script> to the followings: <Script src="_framework/blazor.web.js" autostart="false"></Script>
<Script src="_content/Bit.Bswup/bit-bswup.js"></Script> |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
While .NET 9 can run on the followings:
Browsers:
OS:
The TypeScript project responsible for generating
blazor.web.js
,blazor.webassembly.js
,blazor.webview.js
, andblazor.server.js
targetsES2022
, leading to the following updates in the compatibility table.Browsers:
OS:
Therefore, we decided to generate an
ES2019
-based output from theaspnetcore
repository using the following script:We're running the above script in pre-release and release nuget packages pipelines so you can use these assets published in nuget.org
To ensure compatibility with older browsers in Blazor WebAssembly, add the following configuration to your client web project:
Beta Was this translation helpful? Give feedback.
All reactions