How difficult is to update this template from NET 8 to 9? #1361
Replies: 4 comments
-
Why not upgrade to dotnet9? I'm preparing for the next version, dotnet10. I like to keep up with the latest versions. |
Beta Was this translation helpful? Give feedback.
-
@neozhu I just want to avoid to stay in stable ground as much as possible, which is the case with version 8 of NET and this template. Maybe, and 9 is not LTS. Maybe my concerns are not justified, so I'm still wondering about it. Any advice from the community? |
Beta Was this translation helpful? Give feedback.
-
There’s no built-in upgrade path between template versions, but here’s a simple way to compare and apply changes manually: Install the older version of the template (the one you originally used): dotnet new install Clean.Architecture::OLD_VERSION Create a new project using that version: dotnet new ca-sln -n OldTemplateVersion Initialize a local Git repo and commit: cd OldTemplateVersion
git init
git add .
git commit -m "Old template version" Install the latest version of the template: dotnet new install Clean.Architecture Run the latest version over the top: dotnet new ca-sln --force Compare the changes: git diff Then you can manually copy over the changes you want into your actual project. Hope that helps!
Using .NET 8 (LTS) can seem like a safe choice, but .NET 10 (the next LTS) is coming in October. Any project you start now will likely finish after that, so you're probably better off using the latest version of the template now and upgrading to .NET 10 when it ships. I'll start working on the .NET 10 release of the template soon. |
Beta Was this translation helpful? Give feedback.
-
@jasontaylordev thank you for your reply. I will consider your suggestion, I'll probably stick to version 9 looking forward for version 10. Are you planning to incorporate an upgrade path for template version upgrade? It would be convenient for the community, but maybe too work consuming to implement for your project team. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Hi, everyone.
I'm considering use this template in its 8.0 version, which is the LTS from Microsoft (and this is my why). If I follow that path, how difficult is to upgrade to the newest template version 9.0?
Also, please let me know that you think of this approach, what advantages and disadvantages you may see. Thanks!
Beta Was this translation helpful? Give feedback.
All reactions