【发布时间】:2012-02-25 18:26:00
【问题描述】:
我正在尝试完成我的自动化部署过程,请参阅this question for further info,它已接近尾声。我可以在VS2010中右键单击我的MVC项目并选择“构建部署包”并成功构建它,这将部署到远程服务器。当我运行以下命令时,构建失败:
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe mvcproject.csproj /T:Package /p:Configuration=Deployment
我得到的错误是:
MSDEPLOY : error : Object of type 'manifest' and path 'C:\hoh_code\GIT\ai-poker- project\Packages\Deployment\PokerLeague
WebSite\PokerLeagueWebSite.SourceManifest.xml' cannot be created. [C:\hoh_code\GIT\ai-poker-project\Clients\PokerLeague
WebSite\PokerLeagueWebSite.csproj]
MSDEPLOY : error : One or more entries in the manifest 'sitemanifest' are not valid. [C:\hoh_code\GIT\ai-poker-project\
Clients\PokerLeagueWebSite\PokerLeagueWebSite.csproj]
MSDEPLOY : error : An error occurred when reading the IIS Configuration File 'MACHINE/REDIRECTION'. The identity perfor
ming the operation was 'wiggly\Jon'. [C:\hoh_code\GIT\ai-poker-project\Clients\PokerLeagueWebSite\PokerLeagueWebSite.cs
proj]
MSDEPLOY : error : Filename: \\?\C:\Windows\system32\inetsrv\config\redirection.config [C:\hoh_code\GIT\ai-poker-projec
t\Clients\PokerLeagueWebSite\PokerLeagueWebSite.csproj]
MSDEPLOY : error : Cannot read configuration file due to insufficient permissions [C:\hoh_code\GIT\ai-poker-project\Cli
ents\PokerLeagueWebSite\PokerLeagueWebSite.csproj]
我的印象是我正在执行的右键单击与 msbuild 命令相同。我尝试将输出级别设置为详细,但看不到正确触发它的命令(虽然可能看不到树的木头)。
我的问题是,我该怎么做才能通过命令行构建项目,以便我可以在我的 CI 服务器(没有 VS2010)上构建它,以便它可以自动部署,为什么 VS2010 会成功什么时候命令行失败?
【问题讨论】:
-
doh... 现在你这么说,当我再次查看错误时,这是完全显而易见的。 @Hans Passant,谢谢,如果您作为答案发布,除此之外,用户会再次出错.. :-/
标签: visual-studio-2010 msbuild manifest msdeploy web-deployment-project