Repository navigation
Split PATH on the platform-specific separator in LocateDotNet - #17434
Merged
ViktorHofer merged 1 commit intoAug 31, 2026
Merged
Conversation
Co-authored-by: Copilot <[email protected]> Copilot-Session: be19d794-fe4f-43fe-9e6e-f6e6b13ec6e7
Contributor
There was a problem hiding this comment.
Copilot review overview
Review tier: Lite
Findings: None
What changed in this PR
This PR fixes LocateDotNet’s PATH parsing so it works correctly on Unix-like platforms by using the platform-specific path list separator instead of a hardcoded ;. This aligns the PATH search logic with the existing platform-aware executable name selection (dotnet.exe vs dotnet).
Changes:
- Replace hardcoded
';'PATH splitting withPath.PathSeparatorinLocateDotNet.
| File | Description |
|---|---|
| src/Microsoft.DotNet.Arcade.Sdk/src/LocateDotNet.cs | Uses Path.PathSeparator to correctly split PATH on all supported platforms when locating the dotnet executable. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
ViktorHofer
enabled auto-merge (squash)
August 28, 2026 10:48
AlesProkop
approved these changes
Aug 28, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
LocateDotNetsplitsPATHon a hardcoded';', so it cannot finddotneton Unix, where entries are colon-separated. The line just above already selects the Unix executable name, so the task is meant to work there.PATHonPath.PathSeparatorinstead of';'.Found by the Copilot reviewer on #17381; extracted here since it is unrelated to that PR's multithreading changes.