Skip to content
Merged
Changes from 1 commit
Commits
Show all changes
19 commits
Select commit Hold shift + click to select a range
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Fix locating dnup for tests
  • Loading branch information
dsplaisted committed Nov 13, 2025
commit 2c49afa64889da406940d315c6cdad4b8c69eaa4
8 changes: 7 additions & 1 deletion test/dnup.Tests/Utilities/DnupTestUtilities.cs
Original file line number Diff line number Diff line change
Expand Up @@ -76,10 +76,16 @@ public static string[] BuildArguments(string channel, string installPath, string
/// <returns>A tuple with exit code and captured output (if requested)</returns>
public static (int exitCode, string output) RunDnupProcess(string[] args, bool captureOutput = false, string? workingDirectory = null)
{
#if DEBUG
string configuration = "Debug";
#else
string configuration = "Release";
#endif

string repoRoot = GetRepositoryRoot();
string dnupPath = Path.Combine(
repoRoot,
"artifacts", "bin", "dnup", "Debug", "net10.0", "dnup.dll");
"artifacts", "bin", "dnup", configuration, "net10.0", "dnup.dll");

// Ensure path is normalized and exists
dnupPath = Path.GetFullPath(dnupPath);
Expand Down
Loading