We use our own and third-party cookies to offer our services and collect statistical data. Continuing browsing implies your acceptance. More information

Accept
Upgrading to Visual Studio 2017

Upgrading to Visual Studio 2017

One of the greatest IDE (Integrated Development Environment) that exists nowadays is Microsoft Visual Studio. It was introduced to the public in 1997 and 20 years later has become a big set of software and tools and add-ons and plugins and… It helps software engineers, developers and testers to build excellent solutions.

The last version is Visual Studio 2017 (v15.6 March 5, 2018). It comes in three “flavours”: Community, Professional and Enterprise.

When we think about updating this kind of tools, one big caveat appears: Will my current solution run smoothly with the new version? Moreover, what about my DevOps ecosystem? (Automatic builds, Test automation, Deployment…) Many things must be kept in mind (well, maybe it is better to keep them noted and documented ?). Don’t worry I have already done these changes and most of the times everything works ok. However small problems arise. If this is your case, and you are thinking about starting this change read below and get some time saver advice.

Once you update to VS2017 a Solution, probably some libraries can be updated also (.Net EF …). It is easily performed with NuGet but think carefully about it. To make small changes is better than big releases and always check that you can go back and, of course, test, test, test…

Solutions and projects: VS2017 can read and open the projects and solutions created with the previous release (VS2015). If you are upgrading from an earlier version, VS2017 itself modifies the files. When these changes are finished, you can work normally with the new visual studio.

SLN files

Once the solution is modified for Visual Studio 2017, it can also be opened with Visual Studio 2015 and this can be annoying if you have both versions in the same box. The solution is easy, open the SLN file and find “MinimumVisualStudioVersion” if you inform this tag with 15.0.0.0 (Visual Studio 2017 is coded 15 internally) you will not be able to open it with VS2015.

Automatic testing, aka NUnit, NSubstitute… keep in mind that if you upgrade your desktop IDE it is easy to update with NuGet these libraries, but no one will automatically update the automation solution…

Another curious side effect: if you are using NUnit (Well done! You are testing automatically your solution or part of it ?) and have some automation (Jenkins for example). Then:

someVariable = someOtherVar ?? throw new Error_A_Null_Value_Has_Arrived_Here

probably will not work on the automation side but it’s ok on your IDE. Change this line for an if…then…else classic sentence and it will work.

I will be very glad to know if this text has helped you. Maybe you have some comments or different findings on this topic, so what about to leave a message?

Written by Antoni Tovar

Related news

23-04-2024

Go from Beginner to Expert in Software Testing

15-04-2024

Innovation Unveiled: Explore K-LAGAN's State-of-the-Art Lab | Virtual Tour

03-04-2024

Joining Forces: Innovation and Usability in UX/UI Design

27-03-2024

K-LAGAN participates in JFTL, the European Epicenter of Software Testing.

29-02-2024

Requirements Engineering: Ensuring Mobility Success with K-LAGAN Engineering

21-02-2024

K-LAGAN Engineering at FIMA 2024