在Visual Studio 2015中跨项目导入项目设置(属性)

时间:2016-03-27 00:55:48

标签: visual-studio visual-studio-2010 visual-studio-2012 visual-c++

此问题与this之一有关。但是,当转到物业经理(“查看>其他Windows>物业经理”)时:

properties1

并选择“添加新项目属性表...”:

properties2

导出属性文件,但其内容为:

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <ImportGroup Label="PropertySheets" />
  <PropertyGroup Label="UserMacros" />
  <PropertyGroup />
  <ItemDefinitionGroup />
  <ItemGroup />
</Project>

构建标志设置在哪里(我需要一个带优化的自定义构建,增量链接,aslr和dep全部禁用)?这些自定义设置出现在项目“ExampleSubroutine1”的上图中,我想在项目“SingleLocalVariable”中使用它们,但是在“SingleLocalVariable”中导入属性文件不会设置相应的构建标志。

为什么?

“ExampleSubroutine1”中存在以下设置:

properties3

虽然默认值保存在“SingleLocalVariable”中,即使我从“ExampleSubroutine1”导入属性表:

properties4

我对所有项目使用相同的构建配置(Debug x64):

enter image description here

0 个答案:

没有答案