Visual studio 2010 生成部署包和msbuild t:包之间的差异

Visual studio 2010 生成部署包和msbuild t:包之间的差异,visual-studio-2010,msbuild,manifest,msdeploy,web-deployment-project,Visual Studio 2010,Msbuild,Manifest,Msdeploy,Web Deployment Project,我正在尝试完成我的自动部署过程,请参见,现在就要结束了。我可以在VS2010中右键单击我的MVC项目并选择“Build deployment package”,它成功地构建了它,这将部署到远程服务器。当我运行以下命令时,生成失败: C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe mvcproject.csproj /T:Package /p:Configuration=Deployment 我得到的错误是: MSDEPLOY

我正在尝试完成我的自动部署过程,请参见,现在就要结束了。我可以在VS2010中右键单击我的MVC项目并选择“Build deployment package”,它成功地构建了它,这将部署到远程服务器。当我运行以下命令时,生成失败:

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命令相同。我尝试将输出级别设置为detailed,但看不到正确触发它的命令(尽管可能看不到树的木材)

我的问题是,如何通过命令行构建项目,以便在我的CI服务器(没有VS2010)上构建它,从而自动部署它,以及为什么命令行失败时VS2010会成功

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


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

doh。。。现在你这么说,当我再次检查错误时,这是完全明显的@Hans Passant谢谢,如果你发布一个答案,你会很高兴的,除此之外,再次出现用户错误..:-/