【发布时间】:2015-11-02 14:06:29
【问题描述】:
我在我的 installer.wixproj 中运行 heat 命令作为预构建事件。
我希望我的 dir-parameter (HarvestPath) 成为我包含的项目参考的目标目录。
现在在我的 .wixproj 文件中
<PropertyGroup>
<HarvestPath Condition=" '$(HarvestPath)' == '' ">"@(ProjectReference.TargetDir)"</HarvestPath>
<DefineConstants>HarvestPath=$(HarvestPath)</DefineConstants>
</PropertyGroup>
<ProjectReference Include="..\..\NAME.csproj">
<Name>NAME</Name>
<Project>SOME_GUID</Project>
<Private>True</Private>
<DoNotHarvest>True</DoNotHarvest>
<RefProjectOutputGroups>Binaries;Content;Satellites</RefProjectOutputGroups>
<RefTargetDir>INSTALLFOLDER</RefTargetDir>
</ProjectReference>
如何访问项目引用的目标目录?
"@(ProjectReference)"only 给了我它的 .csproj 文件的完整路径,我找不到任何文档。
【问题讨论】: