【问题标题】:Build Installshield project using TFS build使用 TFS 构建构建 Installshield 项目
【发布时间】:2010-12-09 09:37:56
【问题描述】:

我正在研究 Installshield 和 TFS (VSTS 2008),现在我想构建 Installshield 2011 项目以及构建定义。

为此,我创建了 build.proj 文件,其中包含构建定义以构建运行良好的 .sln 项目。

现在在构建定义文件的末尾我添加了这样的内容:

<Target Name="AfterCompile">   

我已经添加了Installshield项目的引用,以便在构建Visual Studio项目之后开始构建Installshield项目:

<Exec Command="&quot;$(DevEnvDir)\Common7\IDE\devenv&quot; E:\Sw\Manual_Build_TFS_R3\Setup.isproj /Build"/>

之前我使用 VSINSTALLDIR 代替 DevEnvDir 仍然会出现错误提示

Task "Exec"
  Command:
  "\Common7\IDE\devenv" E:\Sw\Manual_Build_TFS_R3\Setup.isproj /Build
  The system cannot find the path specified.
E:\BuildSource\Temp\BuildType\TFSBuild.proj(444,5): error MSB3073: The command ""\Common7\IDE\devenv" E:\Sw\Manual_Build_TFS_R3\Setup.isproj /Build" exited with code 3.
Done executing task "Exec" -- FAILED.
Done building target "AfterCompile" in project "TFSBuild.proj" -- FAILED.
Done Building Project "E:\BuildSource\Temp\BuildType\TFSBuild.proj" (EndToEndIteration target(s)) -- FAILED.

Build FAILED.

"E:\BuildSource\Temp\BuildType\TFSBuild.proj" (EndToEndIteration target) (1) ->
(AfterCompile target) -> 
  E:\BuildSource\Temp\BuildType\TFSBuild.proj(444,5): error MSB3073: The command ""\Common7\IDE\devenv" E:\Sw\Manual_Build_TFS_R3\Setup.isproj /Build" exited with code 3.

    0 Warning(s)
    1 Error(s)

我是这个 VSTS 和 TFS 构建配置的新手。

【问题讨论】:

  • 谢谢 Jose..糟糕,我有点匆忙地输入了问题。

标签: tfs


【解决方案1】:

我们使用这样的东西:

Command="&quot;%programfiles%\Microsoft Visual Studio 8\Common7\IDE\devenv&quot; ..."

这对你有用吗?

-- 编辑--

想到的另一个想法是建议您考虑 WIX 而不是 InstallShield。 WIX 项目在 MSBuild 中运行良好。

【讨论】:

    【解决方案2】:

    我想不出任何正当理由表明您的 InstallShield 项目的路径应该是硬编码的,因为它出现在您的问题中。

    您可以使用 MSBuild 从命令行构建 *.isproj 文件吗?如果是这样,那么您可以将其添加到您的解决方案中并将其设置为仅针对您在 TFS 构建中使用的新解决方案配置进行构建。

    【讨论】:

    • 我不确定 InstallShield,但有时您需要实际运行 DevEnv.exe 才能使编译工作。最好的例子是编译 BizTalk 编排。
    • 感谢吉姆,我也可以构建它... :)
    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 2014-04-05
    • 2015-07-12
    • 2018-02-24
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 2016-12-21
    相关资源
    最近更新 更多