diff --git a/tests/Shared/TemplatesTesting/BuildEnvironment.cs b/tests/Shared/TemplatesTesting/BuildEnvironment.cs index fa1b7dada05..ad3454b5e05 100644 --- a/tests/Shared/TemplatesTesting/BuildEnvironment.cs +++ b/tests/Shared/TemplatesTesting/BuildEnvironment.cs @@ -101,7 +101,11 @@ public BuildEnvironment(bool useSystemDotNet = false, string sdkDirName = "dotne sdkForTemplatePath = Path.GetDirectoryName(dotnetPath)!; } - BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages", EnvironmentVariables.BuildConfiguration, "Shipping"); +#if RELEASE + BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages", "Release", "Shipping"); +#else + BuiltNuGetsPath = Path.Combine(RepoRoot.FullName, "artifacts", "packages", "Debug", "Shipping"); +#endif PlaywrightProvider.DetectAndSetInstalledPlaywrightDependenciesPath(RepoRoot); } diff --git a/tests/Shared/TemplatesTesting/EnvironmentVariables.cs b/tests/Shared/TemplatesTesting/EnvironmentVariables.cs index 52f6705971e..c00987f3ea4 100644 --- a/tests/Shared/TemplatesTesting/EnvironmentVariables.cs +++ b/tests/Shared/TemplatesTesting/EnvironmentVariables.cs @@ -11,8 +11,7 @@ public static class EnvironmentVariables public static readonly string? BuiltNuGetsPath = Environment.GetEnvironmentVariable("BUILT_NUGETS_PATH"); public static readonly bool ShowBuildOutput = Environment.GetEnvironmentVariable("SHOW_BUILD_OUTPUT") is "true"; public static readonly bool IsRunningOnCI = Environment.GetEnvironmentVariable("HELIX_WORKITEM_ROOT") is not null; - public static readonly bool TestsRunningOutsideOfRepo = Environment.GetEnvironmentVariable("TestsRunningOutsideOfRepo") is "true"; - public static readonly string BuildConfiguration = Environment.GetEnvironmentVariable("BUILD_CONFIGURATION") ?? "Debug"; + public static readonly bool TestsRunningOutsideOfRepo = Environment.GetEnvironmentVariable("TestsRunningOutsideOfRepo") is "true"; public static readonly string? TestScenario = Environment.GetEnvironmentVariable("TEST_SCENARIO"); public static readonly string? DefaultTFMForTesting = Environment.GetEnvironmentVariable("DEFAULT_TFM_FOR_TESTING"); }