Orchard icon indicating copy to clipboard operation
Orchard copied to clipboard

Update target framework to 4.8

Open Jetski5822 opened this issue 6 years ago • 21 comments

By doing this you allow us to use the majority of the netstandard packages.

Jetski5822 avatar Apr 01 '18 08:04 Jetski5822

We need to know what is the minimum version installed by Windows Update. Right now we use 4.5.2 as we are sure it's pushed by WU.

sebastienros avatar Apr 05 '18 19:04 sebastienros

i think 4.5.2 is the minimum req version by wu still. though 2016/win10+ come with 4.6.1 pre-installed.

that been said, give 4.6.2 so i can use the http2 features ;p

carlwoodhouse avatar Apr 18 '18 16:04 carlwoodhouse

@sebastienros I'd like to circle back to the choice of upgrading to 4.6.1 as discussed on the PR: I think the argument for 4.6.1 was mainly about whether it's included in Windows Update. Based what I found in the version and dependency table, here's my take on the issue:

Orchard 1.10 shipped in March of 2016 with .NET 4.5.2 (which was released almost 2 years earlier), but .NET 4.5.2 is not included in any OS versions by default, so at some point you had to install it manually (I'm not sure if it was automatic with Windows Update, but it might've been).

.NET versions above 4.6.1 offer a lot of improvements in different areas (many are unrelated though), but some of them can still be significant performance, security, and/or quality of life improvements for Orchard-based development. In the meanwhile, we're also looking at NuGet package updates in #7998, so I think it's a good chance to give Orchard a nice refresh.

.NET 4.8 is not yet supported by Azure App Service for example, so I'd recommend 4.7.2: It has basically the same compatibility as 4.5.2 and is included in Windows 10 and Server versions older than a year now (Windows 10/Server 1803).

BenedekFarkas avatar May 22 '19 10:05 BenedekFarkas

You are the boss

sebastienros avatar May 23 '19 19:05 sebastienros

.NET 4.8 is not yet supported by Azure App Service for example, so I'd recommend 4.7.2

Since yesterday 4.8 is on Windows Update so I assume all machines should have it. even App Service

sebastienros avatar Aug 15 '19 19:08 sebastienros

Nice, that's even better! I don't see it yet in the configuration for an App Service (still 4.7), but I guess it's just a matter of time. AWS Elastic Beanstalk seems to support 4.8 already.

BenedekFarkas avatar Aug 16 '19 11:08 BenedekFarkas

With TLS 1.0 being deprecated and TLS 1.2 becoming the required standard, this ticket should be prioritized. It is recommended that applications use at least 4.7: https://docs.microsoft.com/en-us/dotnet/framework/network-programming/tls#if-your-app-targets-a-net-framework-version-earlier-than-47

mwentz avatar Oct 21 '20 02:10 mwentz

Thanks @mwentz that's a very good point. @sebastienros this issue is assigned to 1.11 - what do you think about a minor version (1.10.4) instead to implement this?

BenedekFarkas avatar Oct 21 '20 09:10 BenedekFarkas

fine

sebastienros avatar Oct 22 '20 17:10 sebastienros

Anyone is working or is plannning to work on this upgrade? The goal is to target fw 4.8 for 1.10.4, right?

HermesSbicego-Laser avatar Dec 17 '20 07:12 HermesSbicego-Laser

@HermesSbicego-Laser correct, you want to take it over

sebastienros avatar Dec 17 '20 18:12 sebastienros

@HermesSbicego-Laser: thanks for this! @sebastienros: any idea when this pull request #8444 will be merged in 1.10.x?

dpomt avatar Jan 07 '21 10:01 dpomt

It's merged.

What about updating the libraries also, at least MVC/Razor. I assume there were security patches.

sebastienros avatar Jan 07 '21 18:01 sebastienros

We would like to update libraries too, yes. MVC/Razor it's a good starting point, but we would like to upgrade the other ones too. Which ones, it depends on their compliance with current ones and the effort involved... BTW I will open a new issue for that. Any help will be appreciated @dpomt @Jetski5822 @BenedekFarkas @carlwoodhouse

HermesSbicego-Laser avatar Jan 08 '21 07:01 HermesSbicego-Laser

Is there any sort of timeline on when the .NET 4.8 update would be available? I would love to update our site to this.

njones57 avatar Jun 01 '21 18:06 njones57

With PRs #8444 we updated to framework 4.8. That PR is merged in 1.10.x so I think we could close this issue. @njones57, is it possible for you to updgrade your site to 1.10.x branch?

HermesSbicego-Laser avatar Jun 03 '21 06:06 HermesSbicego-Laser

@HermesSbicego-Laser I'm not sure if we would be allowed to use a non-release branch as this is for a production system but I can check. Thanks for the info!

njones57 avatar Jun 03 '21 15:06 njones57

@HermesSbicego-Laser do you think we could ship a new minor release?

sebastienros avatar Jun 03 '21 17:06 sebastienros

I think we could and we should. We are currently provisioning 1.10.x (+ some cherrypicks of dev) in our production environment, serving more or less 60 tenants (3 of which are e-commerce) so the 1.10.x is pretty stable from what we see. Definitely we think 1.10.x is ready to be released as 1.10.4 @sebastienros @BenedekFarkas

HermesSbicego-Laser avatar Jun 04 '21 06:06 HermesSbicego-Laser

@sebastienros is there an expected timeline on the proposed 1.10.4 release? Like others, I don't think we can use non-release branches on production systems. Thanks!

mwentz avatar Oct 19 '21 03:10 mwentz

I can't promise anything, but it looks like I'll have some time freeing up soon to dive back into contribs (including reviewing PRs and working on a release).

BenedekFarkas avatar Oct 19 '21 11:10 BenedekFarkas

Fixed in #8444 to 1.10.x and it was merged into dev too.

BenedekFarkas avatar Mar 18 '24 20:03 BenedekFarkas