-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Publish Failure in .NET 9 RC 2 for Blazor Web App (.NET 8, Auto Render Mode) and Blazor WASM (.NET 8) with Localization #109604
Comments
Tagging subscribers to 'arch-wasm': @lewing |
Findings: Workload in .NET 8 doesn't include satellites in WasmApp.targets <Target Name="WasmTriggerPublishApp"
AfterTargets="$(WasmTriggerPublishAppAfterThisTarget)"
Condition="'$(IsBrowserWasmProject)' == 'true' and '$(WasmBuildingForNestedPublish)' != 'true' and '$(IsCrossTargetingBuild)' != 'true'">
<!-- Use a unique property, so the already run wasm targets can also run -->
<MSBuild Projects="$(MSBuildProjectFile)"
Targets="WasmNestedPublishApp"
- Properties="_WasmInNestedPublish_UniqueProperty_XYZ=true;;WasmBuildingForNestedPublish=true;DeployOnBuild=;_IsPublishing=;_WasmIsPublishing=$(_IsPublishing)">
+ Properties="_WasmInNestedPublish_UniqueProperty_XYZ=true;;WasmBuildingForNestedPublish=true;DeployOnBuild=;_IsPublishing=;_WasmIsPublishing=$(_IsPublishing);ResolveAssemblyReferencesFindRelatedSatellites=true">
<Output TaskParameter="TargetOutputs" ItemName="WasmNestedPublishAppResultItems" />
</MSBuild>
<ItemGroup>
<WasmAssembliesFinal Remove="@(WasmAssembliesFinal)" />
<WasmAssembliesFinal Include="@(WasmNestedPublishAppResultItems)" Condition="'%(WasmNestedPublishAppResultItems.OriginalItemName)' == 'WasmAssembliesFinal'" />
<WasmNativeAsset Remove="@(WasmNativeAsset)" />
<WasmNativeAsset Include="@(WasmNestedPublishAppResultItems)" Condition="'%(WasmNestedPublishAppResultItems.OriginalItemName)' == 'WasmNativeAsset'" />
<FileWrites Include="@(WasmNestedPublishAppResultItems)" Condition="'%(WasmNestedPublishAppResultItems.OriginalItemName)' == 'FileWrites'" />
</ItemGroup>
</Target>
....
<Target Name="_AfterWasmBuildApp">
<ItemGroup>
<WasmAssembliesFinal Include="@(_WasmAssembliesInternal)" LlvmBitCodeFile="" />
+ <WasmAssembliesFinal Include="@(_WasmSatelliteAssemblies)" />
</ItemGroup>
</Target> |
We're getting this error building our .net 8 blazor wasm project using the .net 9 sdk. |
Anyone know of any workarounds for this? It's happening on our Azure Pipeline builds. |
The workaround for now is to use .NET 8 SDK
The global.json will look like
|
Thanks for the info. This partly worked. It looks like the SDK is also not available now so had to install that as well. |
I am also having this issue on pipelines that builds AOT builds. What is the current official workaround in pipelines and what is ETA on fix to Azure pipelines please? |
Fixed in #109920. It will be released in the next servicing release. |
Description
Publishing a Blazor Web App (targeting .NET 8, with Auto Render mode) and a Blazor WASM app (targeting .NET 8), both utilizing the localization feature, fails in .NET 9 RC 2.
Reproduction Steps
An error occurs during publishing with the message: "Can't find the original satellite assembly in the list of resolved files to publish for asset," as shown in the screenshot below.
Sample.zip
Environment:
.NET SDK version: 9.0.100-rc.2.24474.11
Expected behavior
The application should publish successfully with all necessary localization files.
Actual behavior
Publishing fails due to a missing satellite assembly file.
Regression?
No response
Known Workarounds
No response
Configuration
No response
Other information
No response
The text was updated successfully, but these errors were encountered: