Skip to content

[NETSDKE2E][VMR][Win-x64]Error Precompiling failed with exit code -1073741819 happens when publishing blazorwasm project with "AOT compilation" enabled #48510

Open
@vdanche

Description

@vdanche
  1. Install 10.0.100-preview.4.25214.102.exe(VMR build) SDK on win-x64.
  2. install wasm-tools with command "dotnet workload install wasm-tools --skip-manifest-update"
  3. dotnet new blazorwasm
  4. add below contents to csproj file to use AOT compilation
<PropertyGroup>  
<TargetFramework>net10.0</TargetFramework>  
<RunAOTCompilation>true</RunAOTCompilation>
</PropertyGroup> 
  1. dotnet publish

Expected Result:
publish successfully

Actual Result:
publish failed with below error:

Image

log has been attached

Image

out.zip

dotnet --info
.NET SDK:
Version: 10.0.100-preview.4.25214.102
Commit: 19c0fee517
Workload version: 10.0.100-manifests.f25b1c94
MSBuild version: 17.15.0-preview-25214-102+19c0fee51

Runtime Environment:
OS Name: Windows
OS Version: 10.0.22631
OS Platform: Windows
RID: win-x64
Base Path: C:\Program Files\dotnet\sdk\10.0.100-preview.4.25214.102\

.NET workloads installed:
[wasm-tools]
Installation Source: SDK 10.0.100-preview.4
Manifest Version: 10.0.100-preview.4.25214.102/10.0.100-preview.4
Manifest Path: C:\Program Files\dotnet\sdk-manifests\10.0.100-preview.4\microsoft.net.workload.mono.toolchain.current\10.0.100-preview.4.25214.102\WorkloadManifest.json
Install Type: Msi

Configured to use workload sets when installing new manifests.
Workloads are configured to install and update using workload versions, but none were found. Run "dotnet workload restore" to install a workload version.

Host:
Version: 10.0.0-preview.4.25214.102
Architecture: x64
Commit: 19c0fee517

.NET SDKs installed:
10.0.100-preview.4.25214.102 [C:\Program Files\dotnet\sdk]

.NET runtimes installed:
Microsoft.AspNetCore.App 10.0.0-preview.4.25214.102 [C:\Program Files\dotnet\shared\Microsoft.AspNetCore.App]
Microsoft.NETCore.App 10.0.0-preview.4.25214.102 [C:\Program Files\dotnet\shared\Microsoft.NETCore.App]
Microsoft.WindowsDesktop.App 10.0.0-preview.4.25214.102 [C:\Program Files\dotnet\shared\Microsoft.WindowsDesktop.App]

Other architectures found:
None

Environment variables:
Not set

global.json file:
Not found

Learn more:
https://aka.ms/dotnet/info

Download .NET:
https://aka.ms/dotnet/download

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions