|
| 1 | +From 2e31a43df045b006135fd9be3e602ebeb65c49a2 Mon Sep 17 00:00:00 2001 |
| 2 | +From: Davis Goodin < [email protected]> |
| 3 | +Date: Wed, 13 Jun 2018 09:53:41 -0500 |
| 4 | +Subject: [PATCH] Add versioned AspNetCore patch override properties |
| 5 | + |
| 6 | +https://github.com/aspnet/websdk/issues/355 will include changes that make this patch unnecessary. |
| 7 | +--- |
| 8 | + .../Sdk.DefaultItems.targets | 12 ++++-------- |
| 9 | + 1 file changed, 4 insertions(+), 8 deletions(-) |
| 10 | + |
| 11 | +diff --git a/src/Web/Microsoft.NET.Sdk.Web.Targets/Sdk.DefaultItems.targets b/src/Web/Microsoft.NET.Sdk.Web.Targets/Sdk.DefaultItems.targets |
| 12 | +index 9fc331e..3e6239b 100644 |
| 13 | +--- a/src/Web/Microsoft.NET.Sdk.Web.Targets/Sdk.DefaultItems.targets |
| 14 | ++++ b/src/Web/Microsoft.NET.Sdk.Web.Targets/Sdk.DefaultItems.targets |
| 15 | +@@ -67,11 +67,9 @@ Copyright (c) .NET Foundation. All rights reserved. |
| 16 | + <!-- Latest patch version of .All Framework --> |
| 17 | + <PropertyGroup Condition="'$(LatestAspNetCoreAllPatchVersion)' == ''"> |
| 18 | + <!-- Placeholder for setting latest patch version using the bundled version from CLI for previous TFMs, this will not apply until 2.2 --> |
| 19 | +- <!-- <LatestAspNetCoreAllPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '2.1'">$(LatestPatchVersionForAspNetCoreAll2_1)</LatestAspNetCoreAllPatchVersion> --> |
| 20 | ++ <LatestAspNetCoreAllPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '2.1'">$(LatestPatchVersionForAspNetCoreAll2_1)</LatestAspNetCoreAllPatchVersion> |
| 21 | ++ <LatestAspNetCoreAllPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '2.2'">$(LatestPatchVersionForAspNetCoreAll2_2)</LatestAspNetCoreAllPatchVersion> |
| 22 | + |
| 23 | +- <!-- If targeting the same release that is bundled with the .NET Core SDK, use the bundled package version |
| 24 | +- provided by Microsoft.NETCoreSdk.BundledVersions.props --> |
| 25 | +- <LatestAspNetCoreAllPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '$(BundledAspNetCoreAllTargetFrameworkVersion)'">$(BundledAspNetCoreAllPackageVersion)</LatestAspNetCoreAllPatchVersion> |
| 26 | + <!-- If not covered by the previous cases use the target framework version for the latest patch version --> |
| 27 | + <LatestAspNetCoreAllPatchVersion Condition="'$(LatestAspNetCoreAllPatchVersion)' == ''">$(_TargetFrameworkVersionWithoutV)</LatestAspNetCoreAllPatchVersion> |
| 28 | + </PropertyGroup> |
| 29 | +@@ -79,11 +77,9 @@ Copyright (c) .NET Foundation. All rights reserved. |
| 30 | + <!-- Latest patch version of .App Framework --> |
| 31 | + <PropertyGroup Condition="'$(LatestAspNetCoreAppPatchVersion)' == ''"> |
| 32 | + <!-- Placeholder for setting latest patch version using the bundled version from CLI for previous TFMs, this will not apply until 2.2 --> |
| 33 | +- <!-- <LatestAspNetCoreAppPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '2.1'">$(LatestPatchVersionForAspNetCoreApp2_1)</LatestAspNetCoreAppPatchVersion> --> |
| 34 | ++ <LatestAspNetCoreAppPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '2.1'">$(LatestPatchVersionForAspNetCoreApp2_1)</LatestAspNetCoreAppPatchVersion> |
| 35 | ++ <LatestAspNetCoreAppPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '2.2'">$(LatestPatchVersionForAspNetCoreApp2_2)</LatestAspNetCoreAppPatchVersion> |
| 36 | + |
| 37 | +- <!-- If targeting the same release that is bundled with the .NET Core SDK, use the bundled package version |
| 38 | +- provided by Microsoft.NETCoreSdk.BundledVersions.props --> |
| 39 | +- <LatestAspNetCoreAppPatchVersion Condition="'$(_TargetFrameworkVersionWithoutV)' == '$(BundledAspNetCoreAppTargetFrameworkVersion)'">$(BundledAspNetCoreAppPackageVersion)</LatestAspNetCoreAppPatchVersion> |
| 40 | + <!-- If not covered by the previous cases use the target framework version for the latest patch version --> |
| 41 | + <LatestAspNetCoreAppPatchVersion Condition="'$(LatestAspNetCoreAppPatchVersion)' == ''">$(_TargetFrameworkVersionWithoutV)</LatestAspNetCoreAppPatchVersion> |
| 42 | + </PropertyGroup> |
| 43 | +-- |
| 44 | +2.17.1.windows.2 |
| 45 | + |
0 commit comments