2010-12-09 105 views
0

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

为此我创建了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"/> 

早些时候,我在DevEnvDir的。安迪已经使用VSINSTALLDIR仍然错误会来这说

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生成配置,任何帮助表示赞赏查找和纠正我需要做的..

感谢

+0

谢谢Jose.Oops我有点匆忙地输入了问题。 – Chetan 2010-12-09 11:53:07

回答

1

我们使用类似这样的设定:

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

这对你有用吗?

- 编辑 -

来考虑另一个想法是,你认为维克斯代替的InstallShield的建议。 WIX项目在MSBuild中工作得很好。

+0

感谢您的帮助Robaticus ..它现在工作正常.. – Chetan 2010-12-13 11:55:16

1

我想不出任何有效的原因,InstallShield项目的路径应该硬编码,因为它出现在您的问题中。

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

+0

我不确定InstallShield,但有时您需要真正运行DevEnv.exe才能使编译工作。最好的例子就是编译BizTalk业务流程。 – Robaticus 2010-12-09 18:18:51

相关问题