15 references to TestTargetFramework
Aspire.EndToEnd.Tests (15)
tests\Shared\WorkloadTesting\AspireProject.cs (6)
21
public static string GetNuGetConfigPathFor(
TestTargetFramework
targetFramework) =>
29
public
TestTargetFramework
TargetFramework { get; init; }
41
public AspireProject(string id, string baseDir, ITestOutputHelper testOutput, BuildEnvironment buildEnv,
TestTargetFramework
? tfm = default)
56
protected static void InitProjectDir(string dir,
TestTargetFramework
tfm)
77
TestTargetFramework
? targetFramework = default,
85
var
tfmToUse = targetFramework ?? BuildEnvironment.DefaultTargetFramework;
tests\Shared\WorkloadTesting\BuildEnvironment.cs (9)
30
public static readonly
TestTargetFramework
DefaultTargetFramework = ComputeDefaultTargetFramework();
59
TestTargetFramework
.Previous => ForPreviousSdkOnly,
63
TestTargetFramework
.Current => ForCurrentSdkAndPreviousRuntime,
265
private static
TestTargetFramework
ComputeDefaultTargetFramework()
268
null or "" or "net9.0" =>
TestTargetFramework
.Current,
269
"net8.0" =>
TestTargetFramework
.Previous,
284
public static string ToTFMString(this
TestTargetFramework
tfm) => tfm switch
286
TestTargetFramework
.Previous => "net8.0",
287
TestTargetFramework
.Current => "net9.0",