From 784091d577b6653e0177954ae5d830e51e50513e Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Mon, 16 Dec 2019 13:48:14 -0800 Subject: [PATCH 1/4] Bump 2.1.x implicit versions Disable SDK tests that do 2.1.x self-contained Delete GivenSelfContainedAppsRollForward. It doesn't work with 3.x+ already and won't work with 2.x MSRCs. --- .../targets/GenerateBundledVersions.targets | 6 +- .../GivenSelfContainedAppsRollForward.cs | 195 ------------------ test/SdkTests/TestConfig.xml | 10 + 3 files changed, 13 insertions(+), 198 deletions(-) delete mode 100644 test/EndToEnd/GivenSelfContainedAppsRollForward.cs diff --git a/src/redist/targets/GenerateBundledVersions.targets b/src/redist/targets/GenerateBundledVersions.targets index 56984cdcd..66af4016c 100644 --- a/src/redist/targets/GenerateBundledVersions.targets +++ b/src/redist/targets/GenerateBundledVersions.targets @@ -92,7 +92,7 @@ + LatestVersion="2.1.15" /> + LatestVersion="2.1.15"/> + LatestVersion="2.1.15"/> t.RuntimeIdentifier != null) - ?.Libraries?.SingleOrDefault(l => - string.Compare(l.Name, packageName, StringComparison.CurrentCultureIgnoreCase) == 0) - ?.Version; - } - - [Fact] - public void WeCoverLatestNetCoreAppRollForward() - { - // Run "dotnet new console", get TargetFramework property, and make sure it's covered in SupportedNetCoreAppVersions - var directory = TestAssets.CreateTestDirectory(); - string projectDirectory = directory.FullName; - - new NewCommandShim() - .WithWorkingDirectory(projectDirectory) - .Execute("console --no-restore") - .Should().Pass(); - - string projectPath = Path.Combine(projectDirectory, Path.GetFileName(projectDirectory) + ".csproj"); - - var project = XDocument.Load(projectPath); - var ns = project.Root.Name.Namespace; - - string targetFramework = project.Root.Element(ns + "PropertyGroup") - .Element(ns + "TargetFramework") - .Value; - - SupportedNetCoreAppVersions.Versions.Select(v => $"netcoreapp{v}") - .Should().Contain(targetFramework, $"the {nameof(SupportedNetCoreAppVersions)}.{nameof(SupportedNetCoreAppVersions.Versions)} property should include the default version " + - "of .NET Core created by \"dotnet new\""); - } - - [Fact] - public void WeCoverLatestAspNetCoreAppRollForward() - { - var directory = TestAssets.CreateTestDirectory(); - string projectDirectory = directory.FullName; - - // Run "dotnet new web", get TargetFramework property, and make sure it's covered in SupportedAspNetCoreAppVersions - - new NewCommandShim() - .WithWorkingDirectory(projectDirectory) - .Execute("web --no-restore") - .Should().Pass(); - - string projectPath = Path.Combine(projectDirectory, Path.GetFileName(projectDirectory) + ".csproj"); - - var project = XDocument.Load(projectPath); - var ns = project.Root.Name.Namespace; - - string targetFramework = project.Root.Element(ns + "PropertyGroup") - .Element(ns + "TargetFramework") - .Value; - - SupportedAspNetCoreVersions.Versions.Select(v => $"netcoreapp{v}") - .Should().Contain(targetFramework, $"the {nameof(SupportedAspNetCoreVersions)} should include the default version " + - "of Microsoft.AspNetCore.App used by the templates created by \"dotnet new web\""); - - - } - - } -} diff --git a/test/SdkTests/TestConfig.xml b/test/SdkTests/TestConfig.xml index 13c5859e5..958b52b30 100644 --- a/test/SdkTests/TestConfig.xml +++ b/test/SdkTests/TestConfig.xml @@ -145,6 +145,16 @@ Skip="true" Issue="" Reason="Needs .NET Core 1.1"/> + + + + From b925821a074fcca4e9c60b1f6fe262c7f3b0d762 Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Mon, 16 Dec 2019 14:08:20 -0800 Subject: [PATCH 2/4] Bump to 3.0.2 for SCD; use 3.1.0 for SCD --- .../targets/GenerateBundledVersions.targets | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/src/redist/targets/GenerateBundledVersions.targets b/src/redist/targets/GenerateBundledVersions.targets index 66af4016c..a214842a0 100644 --- a/src/redist/targets/GenerateBundledVersions.targets +++ b/src/redist/targets/GenerateBundledVersions.targets @@ -14,11 +14,11 @@ <_NETStandardLibraryPackageVersion>$(NETStandardLibraryRefPackageVersion) <_NETCorePlatformsPackageVersion>$(MicrosoftNETCorePlatformsPackageVersion) - <_NETCoreApp30RuntimePackVersion>3.0.1 + <_NETCoreApp30RuntimePackVersion>3.0.2 <_NETCoreApp30TargetingPackVersion>3.0.0 - <_WindowsDesktop30RuntimePackVersion>3.0.1 + <_WindowsDesktop30RuntimePackVersion>3.0.2 <_WindowsDesktop30TargetingPackVersion>3.0.0 - <_AspNet30RuntimePackVersion>3.0.1 + <_AspNet30RuntimePackVersion>3.0.2 <_AspNet30TargetingPackVersion>3.0.1 @@ -155,7 +155,7 @@ Copyright (c) .NET Foundation. All rights reserved. Date: Mon, 16 Dec 2019 14:51:04 -0800 Subject: [PATCH 3/4] Disable test that needs 2.1.latest on Mac OS --- test/SdkTests/TestConfig.xml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/test/SdkTests/TestConfig.xml b/test/SdkTests/TestConfig.xml index 958b52b30..a1bbf00f4 100644 --- a/test/SdkTests/TestConfig.xml +++ b/test/SdkTests/TestConfig.xml @@ -155,6 +155,11 @@ Skip="true" Issue="" Reason="Needs .NET Core 2.1.15"/> + + From 49c775957662df2452f2d46efbb67db2e75b23df Mon Sep 17 00:00:00 2001 From: Nick Guerrera Date: Mon, 16 Dec 2019 15:20:00 -0800 Subject: [PATCH 4/4] Add 3.0.2 feeds --- NuGet.config | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/NuGet.config b/NuGet.config index e172ad077..96bf5bc60 100644 --- a/NuGet.config +++ b/NuGet.config @@ -14,7 +14,9 @@ - + + +