Update for SDK 2.1.401
This commit is contained in:
parent
34f97816dc
commit
f9690afc83
|
|
@ -130,7 +130,7 @@ namespace AspNetCoreSdkTests
|
||||||
NuGetPackageSource.NuGetOrg : NuGetPackageSource.None;
|
NuGetPackageSource.NuGetOrg : NuGetPackageSource.None;
|
||||||
|
|
||||||
// Pre-release SDKs require a private nuget feed
|
// Pre-release SDKs require a private nuget feed
|
||||||
var onlinePackageSource = (DotNetUtil.SdkVersion.IsPrerelease || DotNetUtil.SdkVersion == new SemanticVersion(2, 1, 402)) ?
|
var onlinePackageSource = DotNetUtil.IsPreReleaseSdk ?
|
||||||
NuGetPackageSource.EnvironmentVariableAndNuGetOrg : NuGetPackageSource.NuGetOrg;
|
NuGetPackageSource.EnvironmentVariableAndNuGetOrg : NuGetPackageSource.NuGetOrg;
|
||||||
|
|
||||||
if (runtimeIdentifier == RuntimeIdentifier.None)
|
if (runtimeIdentifier == RuntimeIdentifier.None)
|
||||||
|
|
|
||||||
|
|
@ -33,6 +33,11 @@ namespace AspNetCoreSdkTests.Util
|
||||||
|
|
||||||
public static SemanticVersion RuntimeVersion => _versions.Value.RuntimeVersion;
|
public static SemanticVersion RuntimeVersion => _versions.Value.RuntimeVersion;
|
||||||
|
|
||||||
|
public static bool IsPreReleaseSdk =>
|
||||||
|
SdkVersion.IsPrerelease ||
|
||||||
|
SdkVersion == new SemanticVersion(2, 1, 401) ||
|
||||||
|
SdkVersion == new SemanticVersion(2, 1, 402);
|
||||||
|
|
||||||
public static string TargetFrameworkMoniker => $"netcoreapp{RuntimeVersion.Major}.{RuntimeVersion.Minor}";
|
public static string TargetFrameworkMoniker => $"netcoreapp{RuntimeVersion.Major}.{RuntimeVersion.Minor}";
|
||||||
|
|
||||||
private static (SemanticVersion SdkVersion, SemanticVersion RuntimeVersion) GetVersions()
|
private static (SemanticVersion SdkVersion, SemanticVersion RuntimeVersion) GetVersions()
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue