Skip to content
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

Updates .NET Framework to 4.5.2 and updates dependencies #3064

Merged
merged 22 commits into from
Jun 6, 2019

Conversation

Shazwazza
Copy link
Contributor

.Net 4.5.0 and 4.5.1 have been out of support by Microsoft for several years.

Some dependencies that Umbraco uses are no longer shipped with support for .Net 4.5.0 which means that Umbraco needs to update it's minimum target framework to the supported .Net 4.5.2 in order to be able to use the newer available dependencies.

All web services will be running the latest .Net framework version and in most cases this will be .Net 4.7.x since the .Net framework is updated by Microsoft update services. This actually means that most Umbraco websites are being hosted by much more recent frameworks and they work without issue. This is because there are special targetFramework properties in the web.config which force a given website to run under the same feature-set as the one specified even though the host framework is a later version. What this all means is that there will be no issues with changing the minimum framework to .Net 4.5.2. This PR also sets the targetFramework in the web.config to 4.5.2 since there is no issue running Umbraco under that feature-set.

The issue that arises from this change is that other Visual Studio projects that are built against Umbraco nuget packages will need to bump their target framework to at least 4.5.2 if it's currently set to 4.5.0 or 4.5.1.

This PR updates the Nuspec to show the dependency on .Net 4.5.2, it also adds framework dependencies so that when installing via nuspec, those framework assemblies are automatically added to the project. This is a convenience thing since in many cases you need to manually add the System.Configuration reference.

This PR updates to the latest versions of MVC, WebApi and Owin - there should be no breaking changes there (some of this was not possible until we moved to 4.5.2). Other library updates include: Image Processor libs (this was not possible until we moved to 4.5.2), HtmlAgilityPack, latest compatible CodeAnalysis & DotNetCompilerPlatform libs, latest other MS libs like ValueTuple, Dataflow, Reflection.Metadata. All of these updates are non-major version updates.

One update is the Newtonsoft.Json dependency which is a major version update but we've not had issues with this in the past. There are a substantial amount of fixes from the 10.x -> 11 versions and very few breaks that i think would affect us.

@ghost ghost assigned Shazwazza Sep 28, 2018
@zpqrtbnk zpqrtbnk changed the base branch from dev-v7 to v7/dev March 31, 2019 16:33
@nul800sebastiaan nul800sebastiaan merged commit 5373104 into v7/dev Jun 6, 2019
@nul800sebastiaan nul800sebastiaan deleted the temp-net452-update branch June 6, 2019 15:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants