Share via


Upgrade solution and project from 2012 to 2017

Question

Monday, January 8, 2018 4:43 PM

Hi,

Not sure which forum I need to use for this issue. Currently we are using visual studio 2012 professional edition. On our workstations, we installed Visual Studio Enterprise 2017 version. We got latest version of our project and solution from source safe. When I open solution and project in 2017, it opens without any issues and compiled and ran the project loacally. Everything works fine.

But when I look into solution properties, I see

Microsoft Visual Studio Solution File, Format Version 12.00
# Visual Studio 2012

That means file is not yet upgraded to 2017. 

When I searched forums, they said when I open solution in visual studio 2017, conversion wizard pops up asking to convert. but i didn't get any.

Project file:

<Project DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion="4.0">

What should I do. How to upgrade the project and solution.

Thanks,

All replies (2)

Tuesday, January 9, 2018 6:43 AM

Hi,

Welcome to MSDN forum.

>>When I open solution and project in 2017, it opens without any issues and compiled and ran the project loacally. Everything works fine.

Each new version of Visual Studio generally supports most previous types of projects, files, and other assets. You can work with them as you always have, and provided that you don't depend on newer features, Visual Studio preserves backwards compatibility with previous versions like Visual Studio 2015, Visual Studio 2013**, and Visual Studio 2012**. So if the project can run in vs2017 without any issue, it has been updated successfully.  

>>But when I look into solution properties, I see

Microsoft Visual Studio Solution File, Format Version 12.00

* # Visual Studio 2012*

That means file is not yet upgraded to 2017.

Change it manually, # Visual Studio 2012-> # Visual Studio 2017 and

VisualStudioVersion =  12.xxxxx->VisualStudioVersion = 15.xxxxxxx(your vs2107 version)

>>When I searched forums, they said when I open solution in visual studio 2017, conversion wizard pops up asking to convert. but i didn't get any.

If the project can work with vs2017 directly, there is no conversion wizard.

Best regards,

Joyce

Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected].


Tuesday, August 21, 2018 3:48 AM

To change the project manually, right click on the project and select "Properties". Under Configuration Properties --> General, change the Platform Toolset to Visual Studio 2017 (v141).