【问题标题】:difference between build deployment package and msbuild t:package构建部署包和 msbuild t:package 的区别
【发布时间】: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


【解决方案1】:

错误:权限不足,无法读取配置文件

从提升的命令提示符运行 msbuild 以避免此错误。用于提升 Visual Studio 的过程相同。或者更改构建文件夹的权限,这样就没有必要了。

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 2011-09-19
    • 1970-01-01
    • 1970-01-01
    • 2018-01-19
    • 2013-05-31
    • 1970-01-01
    • 1970-01-01
    • 2012-01-01
    相关资源
    最近更新 更多