将项目从VS 2008转换为2015后发出警告 [英] Warning after convert projects from VS 2008 to 2015

查看:221
本文介绍了将项目从VS 2008转换为2015后发出警告的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

您好我继承了用VS 2008编写的旧项目(C ++和C#)

我需要将其转换为VS的新版本,所以我尝试使用VS 2015打开它。

我有很多警告(0错误),每个项目中最常见的是:



警告:项目文件正在备份给亲戚与原始解决方案相对路径不同的路径。文件夹层次结构的差异可能会在打开或构建备份解决方案和项目时产生问题。



你能帮助我理解如何解决它,因为现在几乎没有项目可以编译,但其他人不是

谢谢



我尝试过的事情:



试图找到备份副本之间的差异但找不到任何有用的东西。

Hi I inherited an old projects that written in VS 2008 (C++ and C#)
I need to convert it to newer version of VS so i tried open it using VS 2015.
I have many warnings (0 errors) and the most common in each project is this:

Warning: The project file is being backed up to a relative path that differs from the original solution relative path. The difference in folder hierarchy may create problems in opening or building the backed up solution and project.

Can you guys help me understand how to solve it since now few of the projects can be compiles but others not
Thanks

What I have tried:

Tried to find the deference between a backup copy but couldn't find anything useful.

推荐答案

解决方案的根源必须是.sln文件,它描述了属于它的项目。

然后,在解决方案文件夹中,每个项目应该有一个子文件夹。在每个子文件夹中,应该有一个.csproj或.vcxproj文件(取决于项目的类型)。

你得到的警告只是意味着这些。* proj文件中的一个或几个。现在可能在备份子文件夹中,这会阻止VS查找并打开它们。

对于每个不编译的项目,获取实际的错误消息,检查该项目的文件夹层次结构,并进行必要的更改。由于我们无法访问您的解决方案的细节,因此这里没有人能为您做到这一点。

迁移解决方案时收到的警告不是关键所在;无法编译的项目的特定消息是您必须查找的消息。只有他们会告诉您问题发生的位置。
At the root of your solution must be a .sln file, which describes which projects belong to it.
Then, in the solution folder, there should be one subfolder for each project. In each of these subfolders, there should be a .csproj or .vcxproj file (depending on the type of the project).
The warning you got simply means that one or several of these .*proj files may now be in the backup subfolder, which would prevent VS to find and open them.
For each of the project which do not compile, get the actual error message, check the folder hierarchy for this project, and make required changes. As we do not have access to the specifics of your solution, no one here can do that for you.
The warnings you got while migrating the solution are not the key here; the specific messages for the projects which cannot compile are the ones you have to look for. Only they will tell you where the problems occur.


查看项目设置以查看备份使用的路径以及可能不正确的原因。
Look at the project settings to see which path the backup is using and why it may not be correct.


这篇关于将项目从VS 2008转换为2015后发出警告的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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