从 VS 2010 转换为 VS 2012 的项目中缺少 vcxproj.filters 文件 [英] Missing vcxproj.filters files in projects converted from VS 2010 to VS 2012

查看:30
本文介绍了从 VS 2010 转换为 VS 2012 的项目中缺少 vcxproj.filters 文件的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在将我的解决方案移至 TFS 环境.在 VS 2010 中创建并迁移到 VS 2012 的几个 (8)旧"C++ 项目缺少 vcxproj.filters 文件.这些项目在没有 .filters 的情况下看起来很开心并且很满意,但是当我尝试从 Visual Studio 中(而不是从外部源代码控制工具)将它们添加到 TFS 2012 以便在项目文件中具有源代码控制绑定时,由于缺少过滤器文件,我收到错误消息.

I am moving my solution to a TFS environment. several (8) "old" C++ projects that were created in VS 2010 and migrated to VS 2012 are missing the vcxproj.filters file. These projects appear happy and content to live without the .filters, but when I try to add them to TFS 2012 from within visual studio (not from the external source control tool) in order to have a source-control binding in the project file, I get errors due to the missing filters file.

有人遇到过类似的问题吗?有什么解决办法吗?

Did anyone encounter a similar problem? any solution?

谢谢,

推荐答案

ok.所以有一个非常简单的解决方案:只需添加一个文件过滤器(项目 -> 添加 -> 添加新过滤器).这会导致 VS 为您创建过滤器文件...

ok. so there is a very easy solution to this: just add a file filter (project -> add -> add new filter). this cause VS to create the filters file for you...

显然,只有在您的项目中没有任何过滤器(文件夹)时才会发生这种情况.

apparently this only happens if you don't have any filter (folder) in your project.

这篇关于从 VS 2010 转换为 VS 2012 的项目中缺少 vcxproj.filters 文件的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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