在 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 inLocalAppData
, just asVCComponents.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/