2010-09-16 91 views
1

我使用下面的MSBuild命令生成的命令提示符下生成服務器上:Web部署軟件包失敗

MSBuild.exe /nologo "Server.Website.csproj" /T:Package 

在Web應用程序(ASP.NET MVC 4)依賴於項目引用Silverlight項目。建築的時候,我得到以下錯誤:

"C:\Builds\2\Development\Main Branch Nightly\Sources\Components\Server.Website\Server.Website.csproj" (Package target) (1) -> 
(CopyAllFilesToSingleFolderForPackage target) -> 
C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0\Web\Microsoft.Web.Publishing.targets(1852,5): error : Copying file Content\ClientBin\Shell.xap to obj\Debug\Package\PackageTmp\Content\ClientBin\Shell.xap failed. Could not find a part of the path 'Content\ClientBin\Shell.xap'. 
[C:\Builds\2\Development\Main Branch Nightly\Sources\Components\Server.Website\Server.Website.csproj] 

當我忽略從的MSBuild調用/T:Package,它似乎很好地工作。我失去了一些關於Silverlight的遞給XAPs爲構建服務器?

+0

看起來像你的Silverlight項目的輸出可以在構建服務器上被重定向。你檢查,看是否存在不同的道路? – 2010-09-16 16:29:16

回答

1

Server.Website.csproj項目,下

<Project> 
    <PropertyGroup> 
     <SilverlightApplicationList> 

的路徑XAP的項目是不正確的。解決這個問題糾正了這個問題。

0

值得嘗試的另一件事情是要改變「建設行動」和「複製到輸出目錄」對你的ClientBin \ silverlight.xap文件

0

打開任務管理器,並殺死MSBuild.exe processess,然後重建項目

工作對我來說