大家好:这是我的第一篇帖子!
我正在尝试使用VisualStudio的“定义常量”功能获取Wixproj,以便使用HeatDirectory获取其源目录。我定义了一个名为SourceBinaries的常量,值为c:\ someproject \ bin \ release。
目的是为多个项目使用相同的wixproj /安装程序,并使用TFS-Build自动化整个过程...
然而,目录标记从未获得SourceBinaries的值。
以下是XML代码:
无论我尝试什么,都导致了“错误:未为所需参数”Directory"提供值的"HeatDirectory"任务。
有人能帮我解决这个问题吗? 提前致谢...
Didier
我正在尝试使用VisualStudio的“定义常量”功能获取Wixproj,以便使用HeatDirectory获取其源目录。我定义了一个名为SourceBinaries的常量,值为c:\ someproject \ bin \ release。
目的是为多个项目使用相同的wixproj /安装程序,并使用TFS-Build自动化整个过程...
然而,目录标记从未获得SourceBinaries的值。
以下是XML代码:
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
blah..
<OutputName>ProjectSetup</OutputName>
blah..
</PropertyGroup>
<PropertyGroup>
<OutputPath>bin\$(Configuration)\</OutputPath>
<IntermediateOutputPath>obj\$(Configuration)\</IntermediateOutputPath>
<DefineConstants>SourceBinaries=c:\someproject\bin\release\</DefineConstants>
</PropertyGroup>
<ItemGroup>
blah..
</ItemGroup>
<Import Project="$(WixTargetsPath)" />
<Target Name="BeforeBuild">
<HeatDirectory NoLogo="$(HarvestDirectoryNoLogo)"
Directory="$(SourceBinaries)"
PreprocessorVariable="var.SourceBinaries"
SuppressAllWarnings="$(HarvestDirectorySuppressAllWarnings)"
SuppressSpecificWarnings="$(HarvestDirectorySuppressSpecificWarnings)"
ToolPath="$(WixToolPath)"
TreatWarningsAsErrors="$(HarvestDirectoryTreatWarningsAsErrors)"
TreatSpecificWarningsAsErrors="$(HarvestDirectoryTreatSpecificWarningsAsErrors)"
VerboseOutput="$(HarvestDirectoryVerboseOutput)"
AutogenerateGuids="$(HarvestDirectoryAutogenerateGuids)"
GenerateGuidsNow="$(HarvestDirectoryGenerateGuidsNow)"
OutputFile="ProductFiles.wxs"
SuppressFragments="$(HarvestDirectorySuppressFragments)"
SuppressUniqueIds="$(HarvestDirectorySuppressUniqueIds)"
Transforms="Transforms.xsl"
ComponentGroupName="ProductFiles"
DirectoryRefId="INSTALLLOCATION"
KeepEmptyDirectories="false"
SuppressCom="%(HarvestDirectory.SuppressCom)"
SuppressRootDirectory="true"
SuppressRegistry="%(HarvestDirectory.SuppressRegistry)">
</HeatDirectory>
blah..
</Target>
<Target Name="AfterBuild">
blah..
</Target>
</Project>
无论我尝试什么,都导致了“错误:未为所需参数”Directory"提供值的"HeatDirectory"任务。
有人能帮我解决这个问题吗? 提前致谢...
Didier