-
Notifications
You must be signed in to change notification settings - Fork 5k
[browser] Use OverrideHtmlAssetPlaceholders=true in browser template #113654
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Pull Request Overview
This PR updates the browser wasm template to support HTML overrides during build and adjusts the fingerprint expectations for specific dotnet files. Key changes include:
- Updating the fingerprint flag for "dotnet.js" and the boot config file in WasmSdkBasedProjectProvider.cs.
- Introducing a new helper method GetBootConfigPath in ProjectProviderBase.cs to locate the fingerprinted boot configuration file.
Reviewed Changes
Copilot reviewed 2 out of 12 changed files in this pull request and generated 1 comment.
File | Description |
---|---|
src/mono/wasm/Wasm.Build.Tests/WasmSdkBasedProjectProvider.cs | Updated boolean flags to enable fingerprinting for dotnet.js and boot config file. |
src/mono/wasm/Wasm.Build.Tests/ProjectProviderBase.cs | Refactored boot config file lookup by introducing GetBootConfigPath and updating its usage. |
Files not reviewed (10)
- src/mono/wasm/templates/templates/browser/browser.0.csproj: Language not supported
- src/mono/wasm/templates/templates/browser/wwwroot/index.html: Language not supported
- src/mono/wasm/testassets/BlazorBasicTestApp/App/BlazorBasicTestApp.csproj: Language not supported
- src/mono/wasm/testassets/BlazorBasicTestApp/App/wwwroot/index.html: Language not supported
- src/mono/wasm/testassets/WasmBasicTestApp/App/WasmBasicTestApp.csproj: Language not supported
- src/mono/wasm/testassets/WasmBasicTestApp/App/wwwroot/index.html: Language not supported
- src/mono/wasm/testassets/WasmOnAspNetCore/BlazorClient/BlazorClient.csproj: Language not supported
- src/mono/wasm/testassets/WasmOnAspNetCore/BlazorClient/wwwroot/index.html: Language not supported
- src/mono/wasm/testassets/WasmOnAspNetCore/WasmBrowserClient/WasmBrowserClient.csproj: Language not supported
- src/mono/wasm/testassets/WasmOnAspNetCore/WasmBrowserClient/wwwroot/index.html: Language not supported
Comments suppressed due to low confidence (1)
src/mono/wasm/Wasm.Build.Tests/ProjectProviderBase.cs:512
- The GetBootConfigPath method does not return a value. Please add an appropriate 'return bootJsonPath;' statement before the method concludes.
}
browserwasm
template to include placeholders and MSBuild settings to enable override of HTML files during build.dotnet.js
is fingerprinted.Contributes to dotnet/aspnetcore#60536