Skip to content
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

Blazor WebAssembly AOT failed with VS2022 17.12.1 Professional #110038

Closed
ibrhmusta opened this issue Nov 21, 2024 · 5 comments
Closed

Blazor WebAssembly AOT failed with VS2022 17.12.1 Professional #110038

ibrhmusta opened this issue Nov 21, 2024 · 5 comments
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono needs-author-action An issue or pull request that requires more info or actions from the author. os-browser Browser variant of arch-wasm

Comments

@ibrhmusta
Copy link

Description

Blazor WebAssembly AOT failed with VS2022 17.12.1 Professional.

Reproduction Steps

  • Create a new Blazor WebAssembly Standalone App
  • Set true in the project file.
  • Try to publish the project with the following command: dotnet publish -c Release

Expected behavior

Blazor WebAssembly AOT compiling is done sucessfully without error messages and all files are created in publish folder.

Actual behavior

The AOT compiling produces the following output and the publish failed:

AOTTest failed with 15 error(s) (1,0s) C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.0\Sdk\WasmApp.Common.targets(694,5): error : Precompiling failed for C:\Users\Gensoft-Yazılım\source\repos\AOTTest\AOTTest\obj\release\net9.0\wasm\for-publish\aot-in\Microsoft.Exten sions.Configuration.Json.dll with exit code 1. The specified response file can not be read C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.0\Sdk\WasmApp.Common.targets(694,5): error : Precompiling failed for C:\Users\Gensoft-Yazılım\source\repos\AOTTest\AOTTest\obj\release\net9.0\wasm\for-publish\aot-in\Microsoft.Exten sions.Logging.dll with exit code 1. The specified response file can not be read C:\Program Files\dotnet\packs\Microsoft.NET.Runtime.WebAssembly.Sdk\9.0.0\Sdk\WasmApp.Common.targets(694,5): error : ons.Concurrent.dll with exit code 1.xit code 1. exit code 1.s\AOTTest\AOTTest\obj\release\net9.0\wasm\for-publish\aot-in\Microsoft.Exten The specified response file can not be read AOTTest failed (2,2s) → bin\release\net9.0\wwwroot Precompiling failed for C:\Users\Gensoft-Yazılım\source\repos\AOTTest\AOTTest\obj\release\net9.0\wasm\for-publish\aot-in\System.Collecti Build failed with 15 error(s) in 4,2s

Regression?

Bu senaryo, .Net 8 de denendi. ancak aynı hata ile karşılaşıldı.

Known Workarounds

Currently I do not know about workarounds of this issue.

Configuration

  • .NET version: 9.0.100
  • OS: Windows 10 Pro 22H2
  • Processor: Intel(R) Core(TM) i5-10400 CPU @ 2.90GHz 2.90 GHz
  • Visual Studio: Microsoft Visual Studio Professional 2022 (64-bit) - Current Version 17.12.1

Other information

No response

@dotnet-policy-service dotnet-policy-service bot added the untriaged New issue has not been triaged by the area owner label Nov 21, 2024
@maraf
Copy link
Member

maraf commented Dec 6, 2024

Can you please run the publish with -bl argument (eg dotnet publish -c Release) and share a produced binlog?

@maraf maraf added arch-wasm WebAssembly architecture area-Build-mono needs-author-action An issue or pull request that requires more info or actions from the author. os-browser Browser variant of arch-wasm and removed untriaged New issue has not been triaged by the area owner labels Dec 6, 2024
Copy link
Contributor

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

@maraf maraf added this to the 9.0.x milestone Dec 6, 2024
Copy link
Contributor

This issue has been marked needs-author-action and may be missing some important information.

Copy link
Contributor

This issue has been automatically marked no-recent-activity because it has not had any activity for 14 days. It will be closed if no further activity occurs within 14 more days. Any new comment (by anyone, not necessarily the author) will remove no-recent-activity.

Copy link
Contributor

This issue will now be closed since it had been marked no-recent-activity but received no further activity in the past 14 days. It is still possible to reopen or comment on the issue, but please note that the issue will be locked if it remains inactive for another 30 days.

@dotnet-policy-service dotnet-policy-service bot removed this from the 9.0.x milestone Jan 3, 2025
@github-actions github-actions bot locked and limited conversation to collaborators Feb 3, 2025
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
arch-wasm WebAssembly architecture area-Codegen-AOT-mono needs-author-action An issue or pull request that requires more info or actions from the author. os-browser Browser variant of arch-wasm
Projects
None yet
Development

No branches or pull requests

2 participants