Skip to content

Commit 2c49afa

Browse files
committed
Fix locating dnup for tests
1 parent df83f3f commit 2c49afa

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

test/dnup.Tests/Utilities/DnupTestUtilities.cs

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -76,10 +76,16 @@ public static string[] BuildArguments(string channel, string installPath, string
7676
/// <returns>A tuple with exit code and captured output (if requested)</returns>
7777
public static (int exitCode, string output) RunDnupProcess(string[] args, bool captureOutput = false, string? workingDirectory = null)
7878
{
79+
#if DEBUG
80+
string configuration = "Debug";
81+
#else
82+
string configuration = "Release";
83+
#endif
84+
7985
string repoRoot = GetRepositoryRoot();
8086
string dnupPath = Path.Combine(
8187
repoRoot,
82-
"artifacts", "bin", "dnup", "Debug", "net10.0", "dnup.dll");
88+
"artifacts", "bin", "dnup", configuration, "net10.0", "dnup.dll");
8389

8490
// Ensure path is normalized and exists
8591
dnupPath = Path.GetFullPath(dnupPath);

0 commit comments

Comments
 (0)