question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

What's the proper way to upgrade AspNetCore patch version?

See original GitHub issue

I’ve searched for this answer from some places and do not think I have a good answer for that. so I have the latest SDK installed. 222

And I new up a brand new AspNetCore empty project (using CLI or VS 2019) dotnet new web And now here is the screenshot from Nuget UI. 111

I can not select v2.2.5 from the dropdown list (on the right hand side), the dropdown is unselectable. I am just wondering what’s the proper way to update to the latest patch verison? I know that I can edit the *.csproj file do this <RuntimeFrameworkVersion>2.2.5</RuntimeFrameworkVersion> manually.

Is there any other way to do this? And I do not think manually change the patch version for the latest version is a good idea.

Another person had the same problem, without an answer either.

Thanks

Issue Analytics

  • State:closed
  • Created 4 years ago
  • Comments:6 (3 by maintainers)

github_iconTop GitHub Comments

2reactions
analogrelaycommented, May 15, 2019

If you are using .NET Core, the only thing you need to do to update to the patch is install the latest patched runtime on the machine running the app (i.e. your servers, dev boxes, etc.).

.NET Core applications automatically roll forward to the highest patch version associated with the major/minor pair you target. This behavior can be disabled using a setting in [appname].runtimeconfig.json but we strongly recommend you keep it to ensure you always run on the most up-to-date runtime (with all released security fixes).

While we do recommend you run on the latest patch, we recommend you do not update your app to target later patch versions as your app will fail to start if that patch doesn’t exist on the target machine. The version of Microsoft.AspNetCore.App you reference is a lower-bound, so if you reference 2.2.4 you’ll fail to start on a server that only has 2.2.3 installed. Patches shouldn’t be introducing APIs that you need to update to depend upon so there’s no need to update the package reference.

1reaction
analogrelaycommented, May 29, 2019

It’s not the clearest path to follow 😃. I would certainly be interested in any thoughts you have on how it can be clearer. If you didn’t find it, others might not either 😃

Read more comments on GitHub >

github_iconTop Results From Across the Web

Migrate from ASP.NET Core 3.1 to 6.0
This article explains how to update an existing ASP.NET Core 3.1 project to ASP.NET Core 6.0. To upgrade from ASP.NET Core 5.0 to...
Read more >
How To Upgrade ASP.NET Core 2.1 To ASP.NET Core 3.1 ...
The very first step for migration is changing the target framework. For this: right-click on Project-> properties and then in project properties ...
Read more >
Upgrade Your ASP.NET Core (3.1 or 5) Project to .NET 6
NET Core Hosted Blazor apps and how to fix it. Full Courses: Complete ASP.NET Core and Entity Framework Development: https://buff.ly/3motx6o ...
Read more >
Upgrading ASP.NET Core to .NET 7.0 - YouTube
In this session, I'm going to show you how to upgrade your existing ASP.NET Core API project to the preview release of .NET...
Read more >
Upgrading ASP.NET Core API to .NET 6 - YouTube
In this video, I'm going to show you how to upgrade your existing ASP.NET Core API from .NET 5 to .NET 6 Preview...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found