NativeAOT fails with "Platform linker not found" when a non-MSVC link.exe is earlier on PATH
Nobody has claimed this yet.
Assessment
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Newbie friendliness
- 48/100
Research direction
No repository files or tests are named. Start by reproducing a Windows NativeAOT publish with the coreutils link.exe earlier on PATH, then compare that behavior with the documented Visual Studio prerequisites. Done should be defined by a clear resolution for the link.exe name collision while preserving the reported coreutils installation behavior.
Written by the indexing model from the issue text.
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.
- Dominant language
- Rust
- Stars
- 5.2k
- Forks
- 107
- Avg merge
- 2d 19h
- Merged PRs (30d)
- 4
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from microsoft/coreutils
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
sleep has 9MB Open
Difficulty 5/5 Over a week Newbie friendliness 35/100
-
grep not work Open
Difficulty 3/5 1-2 days Newbie friendliness 55/100
-
Difficulty 3/5 1-2 days Newbie friendliness 52/100
All issues in microsoft/coreutils
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 85/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 84/100
Eynzof/Hermes-CN-Desktop#610 ·
-
bug team:backend track:services-maintenance
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
cowprotocol/services#4950 ·
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
gitbutlerapp/gitbutler#15998 · 1 comment ·
-
bug triage:deciding
Difficulty 1/5 Under an hour Newbie friendliness 88/100
open-telemetry/otel-arrow#4132 ·