user6135303
user6135303

Reputation: 31

Will I have any issues if I upgrade from .NET 4.0 to 4.5 for 2016

This old SO question is related but is dated. Issues that were brought up are apparently resolved. So I'd like to ask the same question again but for 2016.

  1. Are there any breaking changes in 4.5 that are likely to throw my 4.0 app offline

Upvotes: 0

Views: 263

Answers (1)

Alexei - check Codidact
Alexei - check Codidact

Reputation: 23078

This looks very well documented by Microsoft here, but some key aspects can be mentioned on this site, as the documentation is pretty long:

1) Application Compatibility - this is covered here exactly for your desired transition (4.0 -> 4.5). It includes some changes regarding multi-threading (Tasks and co.), System.Uri, System.Data.SqlClient, Entity Framework's ObjectContext, XmlSerializer and many other features. Depending on project type and features used, you should take a look for that particular section

2) Obsolete/deprecated features - covered in detail here (and provided links there), will be shown after compiling upgraded projects. Here, the easiest approach is to just tackle obsolete warnings one by one.

3) What's new - after performing the upgrade, you should definitely consider the goodies the come with the new framework. For 4.5 they are covered here and include very large arrays (>2G), major improvements for parallelism, ASP.NET improvements and many others

4) NuGet packages - If you have used NuGet, some packages will require upgrade. One way to ensure that the packages folder does not contain unused packages is to remove all content and allow Visual Studio to restore the actual used packages (does this by default on build).

Overall, the upgrade should run without any major problems and I recommend you to perform it.

Upvotes: 1

Related Questions