Related: #53788
Summary
Several Blazor Wasm tests are failing on main:
- EndToEnd.Tests.ProjectBuildTests
- ItCanCreateAndBuildTemplatesWithDefaultFramework(templateName: "blazorwasm", language: "")
- Expected value to be 0 because Expected command to pass but it did not.
- Microsoft.NET.Build.Tests.GivenThatWeWantToGenerateGlobalUsings_BlazorWasm
- It_generates_blazorwasm_usings_and_builds_successfully [FAIL]
- Expected value to be 0 because Expected command to pass but it did not.
- Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmPublishIntegrationTest
- Publish_WithTrimmingdDisabled_Works
- Expected _fileInfo.Exists to be True because Expected File D:\Code\sdk\artifacts\tmp\Debug\testing\Publish_WithT---08F2D3BB\blazorwasm\bin\Debug\net11.0\publish\wwwroot_framework\Microsoft.Extensions.Logging.Abstractions.wasm to exist, but it does not., but found False.
- Publish_BlazorWasmReferencedByAspNetCoreServer(publishArg: "")
- Expected _commandResult.ExitCode to be 0 because Expected command to pass but it did not.
- Publish_BlazorWasmReferencedByAspNetCoreServer(publishArg: "/p:BlazorFingerprintBlazorJs=false")
- Expected _commandResult.ExitCode to be 0 because Expected command to pass but it did not.
Compressed asset failures
- Microsoft.NET.Sdk.BlazorWebAssembly.Tests.BlazorWasmStaticWebAssetsIntegrationTest
- StaticWebAssets_BuildMinimal_Works
- StaticWebAssets_PublishMinimal_Works
- StaticWebAssets_Build_Hosted_Works
- StaticWebAssets_Publish_Hosted_Works
- StaticWebAssets_Publish_DoesNotIncludeXmlDocumentationFiles_AsAssets
- Microsoft.NET.Sdk.BlazorWebAssembly.Tests.WasmJsModulesIntegrationTests
- Build_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest
- JSModules_ManifestIncludesModuleTargetPaths
- Publish_DoesNotGenerateManifestJson_IncludesJSModulesOnBlazorBootJsonManifest
- JsModules_CanHaveDifferentBuildAndPublishModules
- JsModules_CanCustomizeBlazorInitialization
- JsModules_Hosted_CanCustomizeBlazorInitialization
These will have an error output similar to:
System.Exception : The following expected assets weren't found in the manifest:
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\Microsoft.Extensions.Configuration.Abstractions.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\Microsoft.Extensions.DependencyInjection.Abstractions.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\Microsoft.Extensions.FileProviders.Abstractions.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\Microsoft.Extensions.Logging.Abstractions.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\Microsoft.Extensions.Options.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\Microsoft.Extensions.Primitives.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\System.Resources.ResourceManager.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\System.Runtime.CompilerServices.Unsafe.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\System.Runtime.Extensions.wasm.br
${ProjectPath}\blazorwasm\obj\Debug${Tfm}\compressed\publish_framework\System.Threading.Tasks.wasm.br
If the difference in baselines is expected, please re-generate the baselines.
Start by ensuring you're dogfooding the SDK from the current branch (dotnet --version should be '*.0.0-dev').
If you're not on the dogfood sdk, from the root of the repository run:
1. dotnet clean
2. .\restore.cmd or ./restore.sh
3. .\build.cmd ./build.sh
4. .\eng\dogfood.cmd or . ./eng/dogfood.sh
Then, using the dogfood SDK run the .\src\RazorSdk\update-test-baselines.ps1 script.
Related: #53788
Summary
Several Blazor Wasm tests are failing on
main:Compressed asset failures
These will have an error output similar to: