Conversation
Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
- Detect runtime identifier from build output directory instead of hardcoding win-x64 - Extract Configuration and Framework into variables for consistency - Pass -c Debug explicitly to dotnet build Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
…stency - Filter RID subdirectory by presence of exe instead of Select-Object -First 1 - Add param() block so Configuration can be overridden (defaults to Debug) - Use Join-Path instead of backslash string interpolation for paths Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
PureWeen
commented
Mar 11, 2026
Owner
Author
PureWeen
left a comment
There was a problem hiding this comment.
PR #358 Round 2 -- Approve
Finding 1 (arbitrary RID selection): FIXED -- now filters by exe presence.
Finding 2 (non-RID fallback): Still present but LOW risk for .NET 10 Desktop.
Verdict: Approve -- code is materially better.
4-model AI consensus (Round 2)
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.
The relaunch.ps1 script was failing with 'file not found' when attempting to launch the built executable. The issue was in the $BuildDir path construction on line 13, which was missing the win-x64 runtime identifier (RID) subdirectory.
The Problem:
When building a Windows Forms .NET 10 application with RID-specific output, the build artifacts are placed in a subdirectory matching the RID (e.g., win-x64). The original path was:
\
bin\Debug\net10.0-windows10.0.19041.0
\\
But the actual executable location is:
\
bin\Debug\net10.0-windows10.0.19041.0\win-x64
\\
The Fix:
Updated the path to include the win-x64 RID subdirectory so Start-Process can correctly locate and launch the built exe.