From 4596d0fc3d35917e522844fbd70ac7b2828b6fdc Mon Sep 17 00:00:00 2001 From: "Zi Chen (from Dev Box)" Date: Tue, 12 Nov 2024 15:38:02 -0800 Subject: [PATCH] Fix tests on release pipeline --- test/Microsoft.Build.Sql.Tests/DotnetTestBase.cs | 9 +-------- 1 file changed, 1 insertion(+), 8 deletions(-) diff --git a/test/Microsoft.Build.Sql.Tests/DotnetTestBase.cs b/test/Microsoft.Build.Sql.Tests/DotnetTestBase.cs index 12bb3ae..443b348 100644 --- a/test/Microsoft.Build.Sql.Tests/DotnetTestBase.cs +++ b/test/Microsoft.Build.Sql.Tests/DotnetTestBase.cs @@ -15,12 +15,6 @@ public abstract class DotnetTestBase { protected string DatabaseProjectName = "project"; -#if DEBUG - protected const bool IsDebug = true; -#else - protected const bool IsDebug = false; -#endif - protected string WorkingDirectory { get { return Path.Combine(TestContext.CurrentContext.WorkDirectory, TestUtils.EscapeTestName(TestContext.CurrentContext.Test.Name)); } @@ -315,8 +309,7 @@ protected string GetDacpacPath() /// protected string GetOutputDirectory() { - string configuration = IsDebug ? "Debug" : "Release"; - return Path.Combine(this.WorkingDirectory, "bin", configuration); + return Path.Combine(this.WorkingDirectory, "bin", "Debug"); } ///