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

Open
ibrhmusta opened this issue Nov 21, 2024 · 0 comments
Open

Blazor WebAssembly AOT failed with VS2022 17.12.1 Professional #110038

ibrhmusta opened this issue Nov 21, 2024 · 0 comments
Labels
area-Codegen-AOT-mono untriaged New issue has not been triaged by the area owner

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
area-Codegen-AOT-mono untriaged New issue has not been triaged by the area owner
Projects
None yet
Development

No branches or pull requests

1 participant