从2012年到2017年升级解决方案和项目 [英] Upgrade solution and project from 2012 to 2017

查看:277
本文介绍了从2012年到2017年升级解决方案和项目的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好,

不确定我需要针对此问题使用哪个论坛。目前我们正在使用visual studio 2012专业版。在我们的工作站上,我们安装了Visual Studio Enterprise 2017版本。我们从源安全的最新版本的项目和解决方案。
当我在2017年打开解决方案和项目时,它会打开而没有任何问题,并编译并运行项目。一切正常。

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解决方案文件,格式版本12.00

#Visual Studio 2012

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

这意味着文件尚未升级到2017年。 

That means file is not yet upgraded to 2017. 

当我搜索论坛时,他们说当我在Visual Studio 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 DefaultTargets =" Build"的xmlns = QUOT; HTTP://schemas.microsoft.com/developer/msbuild/2003" ToolsVersion =" 4.0">

<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.

谢谢,

推荐答案

欢迎来到MSDN论坛。

Welcome to MSDN forum.

>>当我在2017年打开解决方案和项目时,它没有任何打开问题并编译并运行项目。一切正常。

每个新版本的Visual Studio通常都支持大多数以前类型的项目,文件和其他资产。您可以像往常一样 b 使用它们,并且如果您不依赖于较新的功能,Visual Studio将保留与Visual Studio 2015,Visual Studio 2013等先前版本的向后兼容性strong>和Visual Studio 2012 。如果项目可以在vs2017中运行而没有任何问题,那么
已成功更新。  

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.  

>>但是当我查看解决方案属性时,我看到

Microsoft Visual Studio解决方案文件,格式版本12.00

  #Visual Studio 2012

这意味着文件尚未升级到2017年。

手动更改,#Visual Studio 2012-> #Visual Studio 2017和

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

VisualStudioVersion =   12.xxxxx-> VisualStudioVersion = 15.xxxxxxx(您的vs2107版本)

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

>>当我搜索论坛时,他们说当我在visual studio 2017中打开解决方案时,转换向导弹出要求转换。但我没有得到任何。

如果项目可以工作直接使用vs2017,没有转换向导。

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

祝你好运,

Joyce


这篇关于从2012年到2017年升级解决方案和项目的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆