首页
学习
活动
专区
圈层
工具
发布
社区首页 >问答首页 >build deployment package与msbuild t:package之间的差异

build deployment package与msbuild t:package之间的差异
EN

Stack Overflow用户
提问于 2012-02-26 02:26:00
回答 1查看 1.4K关注 0票数 0

我正在尝试完成我的自动化部署过程,请看this question for further info,它已经很接近了。我可以在VS2010中右键单击我的MVC项目,然后选择"Build deployment package“,它就会成功地构建它,这将部署到远程服务器。当我运行以下命令时,构建失败:

代码语言:javascript
复制
C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe mvcproject.csproj /T:Package /p:Configuration=Deployment

我得到的错误是:

代码语言:javascript
复制
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在命令行失败时仍然成功?

EN

回答 1

Stack Overflow用户

回答已采纳

发布于 2012-02-26 23:17:59

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

从提升的命令提示符运行msbuild以避免此错误。与提升Visual Studio时使用的过程相同。或者更改build文件夹的权限,这样就不需要这样做了。

票数 1
EN
页面原文内容由Stack Overflow提供。腾讯云小微IT领域专用引擎提供翻译支持
原文链接:

https://stackoverflow.com/questions/9446755

复制
相关文章

相似问题

领券
问题归档专栏文章快讯文章归档关键词归档开发者手册归档开发者手册 Section 归档