VC2010和VC2012的Microsoft.Cpp.Win32.user.props [英] Microsoft.Cpp.Win32.user.props for VC2010 and VC2012

查看:102
本文介绍了VC2010和VC2012的Microsoft.Cpp.Win32.user.props的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我已经安装了VS2010,也刚刚安装了VS2012.我需要同时安装两者,因此我可以继续处理较旧的C ++项目(使用VC2010)和全新的C ++新项目(使用VC2012).

I have VS2010 installed and just installed VS2012 as well.  I need both installed so I can continue working on older C++ projects (with VC2010) versus brand C++ new projects (with VC2012). 

但是,似乎VS2010和VS2012都使用相同的Microsoft.Cpp.Win32.user.props文件,该文件位于C:\ Users \<用户名> \ Local \ Microsoft \ MSBuild \ v4.0文件夹.我预计VS2012将使用其他文件夹(也许是v5.0 或其他内容),以便为每个编译器维护单独的Microsoft.Cpp.Win32.user.props文件.

However, it appears that both VS2010 and VS2012 use the same Microsoft.Cpp.Win32.user.props file which is located in the C:\Users\<user name>\Local\Microsoft\MSBuild\v4.0 folder.  I expected VS2012 would use a different folder (maybe v5.0 or something) so that I could maintain separate Microsoft.Cpp.Win32.user.props files for each compiler. 

我需要在每个项目中自动包含一些个人实用程序库,并且我有2010年的那些版本和2012年的较新版本(因此MFC版本要求不会混淆).有什么简单的方法可以 强制VS2012中的新项目使用位于其他文件夹中的Microsoft.Cpp.Win32.user.props文件,以便与VS2010中的文件混淆而不必手动更改每个新项目?

I need to automatically include some personal utility libraries in each of my projects and I have a version of those libraries for 2010 and a newer version for 2012 (so the MFC version requirements don't get mixed up).  Is there any easy way to force new projects in VS2012 to use a Microsoft.Cpp.Win32.user.props file located in some other folder so it's not confused with the one for VS2010 without having to manually change every new project?

推荐答案

欢迎来到这里.

对于此设置路径问题,我将线程移至 MSBuild论坛以获得更好的支持.

For this setting path issue, I will move the thread to MSBuild forum for better support.

祝你有美好的一天.

此致


这篇关于VC2010和VC2012的Microsoft.Cpp.Win32.user.props的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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