Skip to content

Target the latest version of ASP.NET Core by default #947

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 1 commit into from
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
27 changes: 27 additions & 0 deletions patches/cli/aspnet-latest-version.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
diff --git a/build/MSBuildExtensions.targets b/build/MSBuildExtensions.targets
index 5189fb295..3a1e4d4d9 100644
--- a/build/MSBuildExtensions.targets
+++ b/build/MSBuildExtensions.targets
@@ -241,6 +241,22 @@ Copyright (c) .NET Foundation. All rights reserved.
<ItemGroup>
@(ImplicitPackageVariable->'<ImplicitPackageReferenceVersion Include="%(Identity)" TargetFrameworkVersion="%(TargetFrameworkVersion)" DefaultVersion="%(DefaultVersion)" LatestVersion="%(LatestVersion)"/>', '%0A ')
</ItemGroup>
+
+ <!--
+ source-build does not include the ASP.NET Core shared frameworks.
+ Applications built on source-build need to use the latest version of
+ ASP.NET Core to pick up the security fixes. See
+ https://github.com/dotnet/source-build/issues/942 for more information.
+ -->
+ <ItemGroup>
+ <ImplicitPackageReferenceVersion Update="Microsoft.AspNetCore.App">
+ <DefaultVersion>%25(LatestVersion)</DefaultVersion>
+ </ImplicitPackageReferenceVersion>
+ <ImplicitPackageReferenceVersion Update="Microsoft.AspNetCore.All">
+ <DefaultVersion>%25(LatestVersion)</DefaultVersion>
+ </ImplicitPackageReferenceVersion>
+ </ItemGroup>
+
</Project>
]]>
</BundledVersionsPropsContent>