[英]Publish VS2010 Solution to ISS(local) using Jenkins MSBuild Plugin command line
Jenkins successfully build my job using MSBuild plugin(framework 4.0) with this Command Line Arguments Jenkins使用带有此命令行参数的MSBuild插件(框架4.0)成功构建了我的工作
/p:Configuration=Debug /p:Platform="Any CPU" /p:PackageTempDir=C:\inetpub\wwwroot\Example_Jenkins
The problem is that the solution isn't published in the given directory(C:\\inetpub\\wwwroot\\Example_Jenkins) it only goes in the jenkins workspace folder. 问题在于解决方案未发布在给定目录(C:\\ inetpub \\ wwwroot \\ Example_Jenkins)中,仅在jenkins工作区文件夹中发布。 I even tried changing the command line arguments to commands like in web publish still files are not being deployed in the given folder.
我什至尝试将命令行参数更改为命令,例如在Web发布中,静态文件未部署在给定文件夹中。
You doing it not in the correct way. 您没有以正确的方式进行操作。 The correct way is described, for example, here: http://www.digitallycreated.net/Blog/59/locally-publishing-a-vs2010-asp.net-web-application-using-msbuild
例如,在此处描述了正确的方法: http : //www.digitallycreated.net/Blog/59/locally-publishing-a-vs2010-asp.net-web-application-using-msbuild
msbuild Website.csproj "/p:Platform=AnyCPU;Configuration=Debug;PublishDestination=C:\inetpub\wwwroot\Example_Jenkins" /t:PublishToFileSystem
PS I don't think it's so much jenkins related :) 附言:我认为詹金斯关系不大:)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.