Skip to content

Commit 0121733

Browse files
committed
Target the latest version of ASP.NET Core by default
See dotnet#942
1 parent a616b53 commit 0121733

File tree

1 file changed

+27
-0
lines changed

1 file changed

+27
-0
lines changed
Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
diff --git a/build/MSBuildExtensions.targets b/build/MSBuildExtensions.targets
2+
index 5189fb295..3a1e4d4d9 100644
3+
--- a/build/MSBuildExtensions.targets
4+
+++ b/build/MSBuildExtensions.targets
5+
@@ -241,6 +241,22 @@ Copyright (c) .NET Foundation. All rights reserved.
6+
<ItemGroup>
7+
@(ImplicitPackageVariable->'<ImplicitPackageReferenceVersion Include="%(Identity)" TargetFrameworkVersion="%(TargetFrameworkVersion)" DefaultVersion="%(DefaultVersion)" LatestVersion="%(LatestVersion)"/>', '%0A ')
8+
</ItemGroup>
9+
+
10+
+ <!--
11+
+ source-build does not include the ASP.NET Core shared frameworks.
12+
+ Applications built on source-build need to use the latest version of
13+
+ ASP.NET Core to pick up the security fixes. See
14+
+ https://github.com/dotnet/source-build/issues/942 for more information.
15+
+ -->
16+
+ <ItemGroup>
17+
+ <ImplicitPackageReferenceVersion Update="Microsoft.AspNetCore.App">
18+
+ <DefaultVersion>%25(LatestVersion)</DefaultVersion>
19+
+ </ImplicitPackageReferenceVersion>
20+
+ <ImplicitPackageReferenceVersion Update="Microsoft.AspNetCore.All">
21+
+ <DefaultVersion>%25(LatestVersion)</DefaultVersion>
22+
+ </ImplicitPackageReferenceVersion>
23+
+ </ItemGroup>
24+
+
25+
</Project>
26+
]]>
27+
</BundledVersionsPropsContent>

0 commit comments

Comments
 (0)