1
- From d6f6922c24e205a53bc5f2420695a4a177648808 Mon Sep 17 00:00:00 2001
1
+ From dfe28f2b2cfbe8878e637a51a79ab55f8dd41ed7 Mon Sep 17 00:00:00 2001
2
2
From: Davis Goodin <dagood@microsoft.com>
3
3
Date: Wed, 13 Jun 2018 09:46:43 -0500
4
4
Subject: [PATCH] Persist ASP.NET runtime patch targeting default
@@ -7,23 +7,28 @@ Let the CLI build take a default value for TargetLatestAspNetCoreRuntimePatch in
7
7
8
8
https://github.com/dotnet/cli/issues/9469 is required to remove this patch.
9
9
---
10
- build/MSBuildExtensions.targets | 3 +++
11
- 1 file changed, 3 insertions(+)
10
+ build/MSBuildExtensions.targets | 8 +++++ +++
11
+ 1 file changed, 8 insertions(+)
12
12
13
13
diff --git a/build/MSBuildExtensions.targets b/build/MSBuildExtensions.targets
14
- index f5365724a..f192226b8 100644
14
+ index f5365724a..fd2fa3719 100644
15
15
--- a/build/MSBuildExtensions.targets
16
16
+++ b/build/MSBuildExtensions.targets
17
- @@ -196,6 +196,9 @@ Copyright (c) .NET Foundation. All rights reserved.
17
+ @@ -196,6 +196,14 @@ Copyright (c) .NET Foundation. All rights reserved.
18
18
<LatestPatchVersionForNetCore1_0 Condition="'%24(LatestPatchVersionForNetCore1_0)' == ''">1.0.12</LatestPatchVersionForNetCore1_0>
19
19
<LatestPatchVersionForNetCore1_1 Condition="'%24(LatestPatchVersionForNetCore1_1)' == ''">1.1.9</LatestPatchVersionForNetCore1_1>
20
20
<LatestPatchVersionForNetCore2_0 Condition="'%24(LatestPatchVersionForNetCore2_0)' == ''">2.0.9</LatestPatchVersionForNetCore2_0>
21
21
+
22
- + <!-- If true, always target the latest ASP.NET Core runtime by default -->
23
- + <TargetLatestAspNetCoreRuntimePatch Condition="'$(TargetLatestAspNetCoreRuntimePatch)' == ''">$(DefaultTargetLatestAspNetCoreRuntimePatch)</TargetLatestAspNetCoreRuntimePatch>
22
+ + <!-- In source-build, override the default behavior to always target the latest ASP.NET Core runtime.
23
+ + Normally, a published application will use the latest patch version of the shared ASP.NET framework.
24
+ + Source-build does not include the shared ASP.NET Framework, so it will use the latest .0 version instead.
25
+ + The .0 version may not be up-to-date, so this can introduce security issues. Here we override this choice for
26
+ + all apps so they use the latest patch version instead of the .0 version.
27
+ + See https://github.com/dotnet/source-build/issues/586 for more discussion. -->
28
+ + <TargetLatestAspNetCoreRuntimePatch Condition="'%24(TargetLatestAspNetCoreRuntimePatch)' == ''">$(DefaultTargetLatestAspNetCoreRuntimePatch)</TargetLatestAspNetCoreRuntimePatch>
24
29
</PropertyGroup>
25
30
</Project>
26
31
]]>
27
32
- -
28
- 2.17.1.windows.2
33
+ 2.18.0
29
34
0 commit comments