我使用下面的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爲構建服務器?
看起來像你的Silverlight項目的輸出可以在構建服務器上被重定向。你檢查,看是否存在不同的道路? – 2010-09-16 16:29:16