Skip to content

NativeAOT fails with "Platform linker not found" when a non-MSVC link.exe is earlier on PATH #159

Description

When publishing a NativeAOT application on Windows, the build fails with:
Platform linker not found. Ensure you have all the required prerequisites documented at https://aka.ms/nativeaot-prerequisites, in particular the Desktop Development for C++ workload in Visual Studio.

However, the required Visual Studio C++ workloads, Windows SDKs, and MSVC toolchain are all correctly installed.

The actual cause was that another executable named link.exe (from Coreutils) existed earlier on the system PATH.

After removing coreutils, NativeAOT published successfully without any other changes.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    E-needs-discussionNeeds discussion between maintainers.

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions