2010-12-09 81 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

相關問題