From daf5c94bb52422ee0828cde5e926d786566da782 Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Tue, 20 Nov 2018 17:15:37 -0800 Subject: [PATCH 1/2] Update ASP.NET Core to 3.0.0-alpha1-10772 --- .../TestRazorApp/TestRazorApp.csproj | 4 +-- .../TestWebAppSimple/TestWebAppSimple.csproj | 4 +-- build/DependencyVersions.props | 16 +++++----- build/MSBuildExtensions.targets | 29 ++++--------------- build_projects/update-dependencies/Program.cs | 3 +- 5 files changed, 17 insertions(+), 39 deletions(-) diff --git a/TestAssets/TestProjects/TestRazorApp/TestRazorApp.csproj b/TestAssets/TestProjects/TestRazorApp/TestRazorApp.csproj index 611bb08eb..44f0b9e5c 100644 --- a/TestAssets/TestProjects/TestRazorApp/TestRazorApp.csproj +++ b/TestAssets/TestProjects/TestRazorApp/TestRazorApp.csproj @@ -2,10 +2,10 @@ - netstandard2.0 + netcoreapp3.0 - + diff --git a/TestAssets/TestProjects/TestWebAppSimple/TestWebAppSimple.csproj b/TestAssets/TestProjects/TestWebAppSimple/TestWebAppSimple.csproj index a4ce1e1bc..aab73200d 100644 --- a/TestAssets/TestProjects/TestWebAppSimple/TestWebAppSimple.csproj +++ b/TestAssets/TestProjects/TestWebAppSimple/TestWebAppSimple.csproj @@ -1,4 +1,4 @@ - + @@ -10,7 +10,7 @@ - + diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props index 2c1036e89..688e27e68 100644 --- a/build/DependencyVersions.props +++ b/build/DependencyVersions.props @@ -5,15 +5,13 @@ - 3.0.0-alpha1-10663 - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) - $(MicrosoftAspNetCoreAllPackageVersion) + 3.0.0-alpha1-10772 + $(MicrosoftAspNetCoreAppPackageVersion) + $(MicrosoftAspNetCoreAppPackageVersion) + $(MicrosoftAspNetCoreAppPackageVersion) + $(MicrosoftAspNetCoreAppPackageVersion) + $(MicrosoftAspNetCoreAppPackageVersion) + $(MicrosoftAspNetCoreAppPackageVersion) diff --git a/build/MSBuildExtensions.targets b/build/MSBuildExtensions.targets index 40e14be0b..b07fe4628 100644 --- a/build/MSBuildExtensions.targets +++ b/build/MSBuildExtensions.targets @@ -29,21 +29,17 @@ <_NETCoreAppPackageVersion>$(MicrosoftNETCoreAppPackageVersion) <_NETStandardLibraryPackageVersion>@(_NETStandardLibraryPackageVersions->Distinct()) <_NETCorePlatformsPackageVersion>@(_NETCorePlatformsPackageVersions->Distinct()) - <_AspNetCoreAllPackageVersion>$(MicrosoftAspNetCoreAllPackageVersion) <_AspNetCoreAppPackageVersion>$(MicrosoftAspNetCoreAppPackageVersion) - <_DefaultPatchVersionForAspNetCoreAll2_1>2.1.1 - <_DefaultPatchVersionForAspNetCoreApp2_1>$(_DefaultPatchVersionForAspNetCoreAll2_1) + <_DefaultPatchVersionForAspNetCoreApp3_0>3.0.0 - <_DefaultPatchVersionForAspNetCoreAll2_1 Condition="$(_AspNetCoreAllPackageVersion.StartsWith('$(_DefaultPatchVersionForAspNetCoreAll2_1)-'))">$(_AspNetCoreAllPackageVersion) - <_DefaultPatchVersionForAspNetCoreApp2_1 Condition="$(_AspNetCoreAppPackageVersion.StartsWith('$(_DefaultPatchVersionForAspNetCoreApp2_1)-'))">$(_AspNetCoreAppPackageVersion) + <_DefaultPatchVersionForAspNetCoreApp3_0 Condition="$(_AspNetCoreAppPackageVersion.StartsWith('$(_DefaultPatchVersionForAspNetCoreApp3_0)-'))">$(_AspNetCoreAppPackageVersion) <_NETCoreAppTargetFrameworkVersion>$(_NETCoreAppPackageVersion.Split('.')[0]).$(_NETCoreAppPackageVersion.Split('.')[1]) <_NETStandardTargetFrameworkVersion>$(_NETStandardLibraryPackageVersion.Split('.')[0]).$(_NETStandardLibraryPackageVersion.Split('.')[1]) - <_AspNetCoreAllTargetFrameworkVersion>$(_NETCoreAppTargetFrameworkVersion) - <_AspNetCoreAppTargetFrameworkVersion>$(_AspNetCoreAllTargetFrameworkVersion) + <_AspNetCoreAppTargetFrameworkVersion>$(_NETCoreAppTargetFrameworkVersion) <_NETCoreSdkIsPreview Condition=" '$(DropSuffix)' != 'true' ">true @@ -91,25 +87,10 @@ - - - - - - - - %24(RestoreAdditionalProjectSources);https://dotnetfeed.blob.core.windows.net/dotnet-core/index.json - $(_DefaultPatchVersionForAspNetCoreAll2_1) - $(_DefaultPatchVersionForAspNetCoreApp2_1) + 2.1.1 + 2.1.1 1.0.12 diff --git a/build_projects/update-dependencies/Program.cs b/build_projects/update-dependencies/Program.cs index 198a004ee..7a05d64f7 100644 --- a/build_projects/update-dependencies/Program.cs +++ b/build_projects/update-dependencies/Program.cs @@ -87,10 +87,9 @@ namespace Microsoft.DotNet.Scripts if (s_config.HasVersionFragment("aspnet")) { - yield return CreateRegexUpdater(dependencyVersionsPath, "MicrosoftAspNetCoreAllPackageVersion", "Microsoft.AspNetCore.All"); + yield return CreateRegexUpdater(dependencyVersionsPath, "MicrosoftAspNetCoreAppPackageVersion", "Microsoft.AspNetCore.App"); yield return CreateRegexUpdater(dependencyVersionsPath, "DotnetEfPackageVersion", "dotnet-ef"); yield return CreateRegexUpdater(dependencyVersionsPath, "MicrosoftAspNetCoreDeveloperCertificatesXPlatPackageVersion", "Microsoft.AspNetCore.DeveloperCertificates.XPlat"); - yield return CreateRegexUpdater(dependencyVersionsPath, "MicrosoftAspNetCoreMvcPackageVersion", "Microsoft.AspNetCore.Mvc"); yield return CreateRegexUpdater(dependencyVersionsPath, "DotnetDevCertsPackageVersion", "dotnet-dev-certs"); yield return CreateRegexUpdater(dependencyVersionsPath, "DotnetSqlCachePackageVersion", "dotnet-sql-cache"); yield return CreateRegexUpdater(dependencyVersionsPath, "DotnetUserSecretsPackageVersion", "dotnet-user-secrets"); From 25a6d8a10c1d50c9093d5d1ba84cdce8ee87a07f Mon Sep 17 00:00:00 2001 From: Nate McMaster Date: Tue, 20 Nov 2018 17:33:30 -0800 Subject: [PATCH 2/2] Update EF Core version to 3.0.0-preview.18569.2 --- build/DependencyVersions.props | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/build/DependencyVersions.props b/build/DependencyVersions.props index 688e27e68..cf74e297b 100644 --- a/build/DependencyVersions.props +++ b/build/DependencyVersions.props @@ -5,9 +5,14 @@ + + 3.0.0-preview.18569.2 + + + + 3.0.0-alpha1-10772 $(MicrosoftAspNetCoreAppPackageVersion) - $(MicrosoftAspNetCoreAppPackageVersion) $(MicrosoftAspNetCoreAppPackageVersion) $(MicrosoftAspNetCoreAppPackageVersion) $(MicrosoftAspNetCoreAppPackageVersion)