From a06a7b55c4aa1cd4ade5652e3a83dbec220ac519 Mon Sep 17 00:00:00 2001 From: Mike Harder Date: Mon, 14 May 2018 17:00:45 -0700 Subject: [PATCH] Upgrade from 2.1.300-rc1 to 2.1.300-rtm (#9) - Add DotNetCore PackageSource - Replace PackageSource.NuGetOrg with PackageSource.DotNetCore (as needed) - Remove version number from a few files included in self-contained deployments - Add "*.csproj.Complete" (Reaction to https://github.com/aspnet/Razor/pull/2316) --- AspNetCoreSdkTests/AssemblyInfo.cs | 2 +- AspNetCoreSdkTests/NuGetPackageSource.cs | 6 ++ AspNetCoreSdkTests/RuntimeIdentifier.cs | 19 +++- AspNetCoreSdkTests/TemplateTests.cs | 93 ++++++++----------- .../Templates/AngularTemplate.cs | 2 +- .../Templates/ConsoleApplicationTemplate.cs | 10 +- AspNetCoreSdkTests/Templates/RazorUtil.cs | 2 + 7 files changed, 73 insertions(+), 61 deletions(-) diff --git a/AspNetCoreSdkTests/AssemblyInfo.cs b/AspNetCoreSdkTests/AssemblyInfo.cs index cd9c837b44..f6eeb3ec2d 100644 --- a/AspNetCoreSdkTests/AssemblyInfo.cs +++ b/AspNetCoreSdkTests/AssemblyInfo.cs @@ -20,4 +20,4 @@ public class AssemblySetUp { IOUtil.DeleteDir(TempDir); } -} \ No newline at end of file +} diff --git a/AspNetCoreSdkTests/NuGetPackageSource.cs b/AspNetCoreSdkTests/NuGetPackageSource.cs index a20903007b..a680fd1047 100644 --- a/AspNetCoreSdkTests/NuGetPackageSource.cs +++ b/AspNetCoreSdkTests/NuGetPackageSource.cs @@ -16,6 +16,12 @@ namespace AspNetCoreSdkTests SourceArgumentLazy = new Lazy("--source https://api.nuget.org/v3/index.json"), }; + public static NuGetPackageSource DotNetCore { get; } = new NuGetPackageSource + { + Name = nameof(DotNetCore), + SourceArgumentLazy = new Lazy("--source https://dotnet.myget.org/F/dotnet-core/api/v3/index.json"), + }; + public static NuGetPackageSource EnvironmentVariable { get; } = new NuGetPackageSource { Name = nameof(EnvironmentVariable), diff --git a/AspNetCoreSdkTests/RuntimeIdentifier.cs b/AspNetCoreSdkTests/RuntimeIdentifier.cs index caed20eac4..a0898b1968 100644 --- a/AspNetCoreSdkTests/RuntimeIdentifier.cs +++ b/AspNetCoreSdkTests/RuntimeIdentifier.cs @@ -12,11 +12,6 @@ namespace AspNetCoreSdkTests OSPlatforms = new[] { OSPlatform.Linux, OSPlatform.OSX, OSPlatform.Windows, }, }; - public static RuntimeIdentifier Win_x64 = new RuntimeIdentifier() { - Name = "win-x64", - OSPlatforms = new[] { OSPlatform.Windows, }, - }; - public static RuntimeIdentifier Linux_x64 = new RuntimeIdentifier() { Name = "linux-x64", OSPlatforms = new[] { OSPlatform.Linux, }, @@ -28,6 +23,20 @@ namespace AspNetCoreSdkTests OSPlatforms = new[] { OSPlatform.OSX, }, }; + public static RuntimeIdentifier Win_x64 = new RuntimeIdentifier() + { + Name = "win-x64", + OSPlatforms = new[] { OSPlatform.Windows, }, + }; + + public static IEnumerable All = new[] + { + RuntimeIdentifier.None, + RuntimeIdentifier.Linux_x64, + RuntimeIdentifier.OSX_x64, + RuntimeIdentifier.Win_x64, + }; + private RuntimeIdentifier() { } public string Name { get; private set; } diff --git a/AspNetCoreSdkTests/TemplateTests.cs b/AspNetCoreSdkTests/TemplateTests.cs index c83a519ef7..6660c7922b 100644 --- a/AspNetCoreSdkTests/TemplateTests.cs +++ b/AspNetCoreSdkTests/TemplateTests.cs @@ -81,61 +81,50 @@ namespace AspNetCoreSdkTests serverError); } - private static readonly IEnumerable