Skip to content

Update to .NET SDK v10.0.203 breaks Native AOT compilation - Windows 11 x64 #127457

@GrandDixence

Description

@GrandDixence

Description

An update to .NET SDK v10.0.203 breaks Native AOT compilation on Windows 11 (Intel/AMD x64)

Reproduction Steps

  • Remove all .NET SDK installations.
  • Install .NET SDK v10.0.107 (dotnet-sdk-10.0.107-win-x64.exe)
# dotnet nuget locals all --clear
# dotnet.exe publish --configuration Release --runtime win-x64 -property:PublishAot=true -property:OptimizationPreference=Speed -property:ControlFlowGuard=Guard -property:instruction-set=x86-x64-v3

=> compilation works fine. No error message.

  • Remove all .NET SDK installations.
  • Install .NET SDK v10.0.203 (dotnet-sdk-10.0.203-win-x64.exe)
# dotnet nuget locals all --clear
# dotnet.exe publish --configuration Release --runtime win-x64 -property:PublishAot=true -property:OptimizationPreference=Speed -property:ControlFlowGuard=Guard -property:instruction-set=x86-x64-v3

=> famous error message from Microsoft.NETCore.Native.Windows: Platform linker not found. Ensure you have all required prerequisites blabla...

Expected behavior

.NET SDK v10.0.203: Native AOT compilation works fine. No error message.

Actual behavior

.NET SDK v10.0.203: Compilation fails with famous error message from Microsoft.NETCore.Native.Windows: Platform linker not found

Regression?

Native AOT compilation works fine with .NET SDK v10.0.107

Known Workarounds

Downgrade from .NET SDK v10.0.203 to .NET SDK v10.0.107

Configuration

  • up-to-date Windows 11, x86-64, 24H2 (Build 26100.8246),
  • Microsoft Visual Studio Installer v4.5.35.35368
  • Visual Studio Build Tools 2026 v18.5.1
  • Windows SDK AddOn v10.1.0.0
  • Windows Software Development Kit v10.1.26100.7705

Other information

# c:\Users\foo\.nuget\packages\microsoft.dotnet.ilcompiler\10.0.7\build\findvcvarsall.bat x64
C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.50.35717\bin\Hostx64\x64\#
C:\Program Files (x86)\Microsoft Visual Studio\18\BuildTools\VC\Tools\MSVC\14.50.35717\lib\x64;C:\Program Files (x86)\Windows Kits\10\lib\10.0.26100.0\ucrt\x64;C:\Program Files (x86)\Windows Kits\10\\lib\10.0.26100.0\\um\x64

Something is wrong in the area of Code > dotnet > runtime > src > coreclr > nativeaot > BuildIntegration

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    Status

    No status

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions