简体   繁体   English

使用Jenkins MSBuild插件命令行将VS2010解决方案发布到ISS(本地)

[英]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.

相关问题 从msbuild命令行构建VS2010解决方案文件 - Build VS2010 solution file from msbuild command line 使用MsBuild.exe和VS2010的命令行进行Web部署/发布网站项目 - Web Deploy/Publish Web site project using MsBuild.exe and command line with VS2010 Visual Studio 2010解决方案的MSBuild命令行执行无法引用VS2010 SDK来构建扩展 - MSBuild command line execution of Visual Studio 2010 Solution fails referencing VS2010 SDK to build an extension 在VS2010中编译解决方案或通过MsBuild命令行生成的代码不同 - Generated code differs when compiling solution in VS2010 or via MsBuild command line 使用MSBuild 2008构建VS2010解决方案 - Build VS2010 solution using MSBuild 2008 msbuild在命令行上工作,但VS2010表示项目“未选中” - msbuild works on command line but VS2010 says a project is “not selected” 使用Jenkins的MSBUILD插件构建VS2010 Project时的参考问题(错误BC30007:装配需要参考) - Reference Issue (error BC30007: Reference required to assembly) while building VS2010 Project using MSBUILD Plugin of Jenkins 从VS2010发布共享解决方案? - Publish sharepoint solution from VS2010? 使用VS2010目标从MSBuild脚本发布Web应用程序重置工作目录 - Publish web application from MSBuild Script using VS2010 targets resets working directory 如何使用 VS2010 中的 MSBuild 在解决方案中定位特定的 .NET 项目? - How do I target a specific .NET project within a Solution using MSBuild from VS2010?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM