dotnet / runtime

.NET is a cross-platform runtime for cloud, mobile, desktop, and IoT apps.
https://docs.microsoft.com/dotnet/core/
MIT License
15.25k stars 4.73k forks source link

.NET 9 RC 1 publish failed for WebAssembly AOT #107745

Closed ElderJames closed 1 month ago

ElderJames commented 1 month ago

Is there an existing issue for this?

Describe the bug

I'm try to update .NET RC 1 for my project, but got the error:

/home/runner/.nuget/packages/microsoft.net.sdk.webassembly.pack/9.0.0-rc.1.24431.7/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(476,5): error : System.InvalidOperationException: Can't find the original satellite assembly in the list of resolved files to publish for asset '/home/runner/work/ant-design-blazor/ant-design-blazor/site/AntDesign.Docs.Wasm/bin/Release/net9/wwwroot/_framework/zh-CN/AntDesign.Docs.resources.wasm'. [/home/runner/work/ant-design-blazor/ant-design-blazor/site/AntDesign.Docs.Wasm/AntDesign.Docs.Wasm.csproj::TargetFramework=net9]
/home/runner/.nuget/packages/microsoft.net.sdk.webassembly.pack/9.0.0-rc.1.24431.7/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(476,5): error :    at Microsoft.NET.Sdk.WebAssembly.ComputeWasmPublishAssets.ComputeUpdatedAssemblies(IDictionary`2 satelliteAssemblies, List`1 filesToRemove, Dictionary`2 resolvedAssembliesToPublish, Dictionary`2 assemblyAssets, Dictionary`2 satelliteAssemblyAssets, Dictionary`2 compressedRepresentations, List`1 newAssets, List`1 promotedAssets) [/home/runner/work/ant-design-blazor/ant-design-blazor/site/AntDesign.Docs.Wasm/AntDesign.Docs.Wasm.csproj::TargetFramework=net9]
/home/runner/.nuget/packages/microsoft.net.sdk.webassembly.pack/9.0.0-rc.1.24431.7/build/Microsoft.NET.Sdk.WebAssembly.Browser.targets(476,5): error :    at Microsoft.NET.Sdk.WebAssembly.ComputeWasmPublishAssets.Execute() [/home/runner/work/ant-design-blazor/ant-design-blazor/site/AntDesign.Docs.Wasm/AntDesign.Docs.Wasm.csproj::TargetFramework=net9]

The github actions log: https://github.com/ant-design-blazor/ant-design-blazor/actions/runs/10833529809/job/30060543278?pr=4196#step:6:8012

Expected Behavior

No response

Steps To Reproduce

No response

Exceptions (if any)

No response

.NET Version

No response

Anything else?

No response

javiercn commented 1 month ago

@maraf can you take a look?

dotnet-policy-service[bot] commented 1 month ago

Tagging subscribers to 'arch-wasm': @lewing See info in area-owners.md if you want to be subscribed.

lewing commented 1 month ago

likely fixed by https://github.com/dotnet/runtime/pull/107398

ElderJames commented 1 month ago

Thanks for reply @lewing , so are there any workaround before the next release?

maraf commented 1 month ago

@ElderJames No, sorry. You can either use Preview 6 (before the offending feature was implemented) or wait for RC 2. Alternatively we can try nightly build of RC 2

maraf commented 1 month ago

I'm going to the issue as the fix has landed. Feel free to reopen the issue if you face the problem with RC2