【发布时间】:2009-06-11 01:03:52
【问题描述】:
我希望我们的 WiX 安装程序通过 hudson 调用 msbuild 脚本在构建服务器上构建,以合并完整的 .NET 3.5 sp1 安装程序可执行文件。事实证明,我们的用户总是可以访问 CD,但不能总是访问 Internet,因此我们不能使用 over-the-net 安装程序。我们还可以要求所有用户都运行 XP,这很好,因为我们还要求他们运行 .NET 3.5。
我们的构建服务器没有安装 Visual Studio 的副本,只是通过 MSBuild 构建项目。
根据版本 3.0.5120 的 WiX 帮助文件,我已将此行添加到我的 wixproj:
<ItemGroup>
<BootstrapperFile Include="dotnetfx.exe">
<ProductName>.NET Framework 3.5 sp1</ProductName>
</BootstrapperFile>
</ItemGroup>
还有这一行:
<Target Name="AfterBuild">
<GenerateBootstrapper ApplicationFile="$(TargetPath)"
ApplicationName="MyApp"
BootstrapperItems="@(BootstrapperFile)"
ComponentsLocation="Relative"
CopyComponents="True"
OutputPath="$(OutputPath)"
Path="C:\downloads\"/>
</Target>
是的,我意识到“路径”不是帮助文件中的内容,但那是因为我在构建服务器上没有 Visual Studio。有什么妙语可以让这项工作发挥作用?
【问题讨论】:
-
删除了“hudson”标签,因为它只与问题相关。
-
实际上,它与问题有关 - 闭着眼睛使用 hudson 和 msbuild 执行远程构建,而您只能访问受限的服务器,这让这很痛苦。必须正确设置“路径”变量。