c++ - 如何一劳永逸地在VS中设置配置属性?

标签 c++ visual-studio-2010

在 VS 2010RC 中,我每次创建新项目时都必须指定配置属性和特别包含的路径。有没有办法对所有 future 的项目只做一次?
我问这个是因为我开始使用 Boost 库,每次创建项目时我都必须指定所有这些路径,这有点乏味。

最佳答案

VC++ 目录(我认为您要配置的目录)已移至属性表以使其对 MSBuild 更加友好。

来自 http://blogs.msdn.com/vsproject/archive/2009/07/07/vc-directories.aspx 的片段:

If you open up the Property Manager view to see the property sheets associated with your project, you’ll see that one of the property sheets is named Microsoft.Cpp.Win32.User. This property sheet is actually stored in LocalAppData, just as VCComponents.dat file was, in the directory %LocalAppData%\Microsoft\VisualStudio\10.0. Using the property editor on the property sheet (just right-click on this property sheet node and select Properties…), you can see that you are able to make edits directly to this file. Since all projects, by default, import this property sheet, you are effectively editing the VC++ directories in the same way you were able to do before.

有关 VC++ 2010 中属性表的更多详细信息,请参阅以下内容:

关于c++ - 如何一劳永逸地在VS中设置配置属性?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2594092/

相关文章:

c++ - 函数作为参数 vs 函数指针作为参数

c++ - 类型转换和异常处理

c++ - 信号名称 : SIGSEGV error

visual-studio-2010 - 如何实现两个按钮点击事件

database - Visual Studio 2010 数据库项目部署到不同的环境

c++ - 某些配置 VS 2010 中的特定项目缺少符号

c++ - 为什么在这种情况下编译器没有消除复制构造

c++ - 从基类到不同派生类的多重继承转换

visual-studio - 如何让 TFS 2010 检测对 Visual Studio 之外的文件所做的更改?

c++ - 如何在Visual Studio 2010中使用Boost