使用Web Deploy Package使用TFS 2017构建和部署Web应用程序 [英] Build and Deploy a Web Application with TFS 2017 using Web Deploy Package

查看:122
本文介绍了使用Web Deploy Package使用TFS 2017构建和部署Web应用程序的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述






我的问题与此类似

  http://stackoverflow.com/questions/35351695/build-and-deploy-a-web-application-with-tfs-2015-build

 http://stackoverflow.com/questions/35351695/build-and-deploy-a-web-application-with-tfs-2015-build

使用TFS 2015 Build构建和部署Web应用程序



但是,该解决方案对我不起作用。我正在进行持续集成,我必须部署一个Web应用程序,以及其他网站,我在创建用于部署的.zip包时没有遇到任何问题。我正在使用/ p:DeployOnBuild = true / p:WebPublishMethod = Package
/ p:PackageAsSingleFile = true / p:SkipInvalidConfigurations = true /p:PackageLocation="$(Build.StagingDirectory)\\"



然后我使用Deploy IIS App来提取网站虚拟目录中的.zip包。  

Build and Deploy a Web Application with TFS 2015 Build

But, the solution is not working for me. I am working on Continuous Integration, and I have to Deploy a Web Application, and others Website, with the website I don't have problems creating the .zip Package for the deploy. I am using /p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="$(Build.StagingDirectory)\\"

Then I am using Deploy IIS App for extract the .zip Package in the virtual directory for the website.  


我试过  / p:DeployOnBuild = True / p:PublishProfile = $(DeploymentConfiguration) 和
我使用了作为Web Deploy Package创建的发布配置文件,但在工件构建之后我得到了相同的文件,我的意思是全部项目文件包括.sln。

I tried /p:DeployOnBuild=True/p:PublishProfile=$(DeploymentConfiguration) and I used a publish profile created as Web Deploy Package but after the build in the artifacts I get the same files, I mean all the projects files including .sln.


我不确定当我使用  / p:DeployOnBuild = True
/ p:PublishProfile = $(DeploymentConfiguration)
,但我没有看到更改。

I am not sure what should I expect in the artifact when I use /p:DeployOnBuild=True /p:PublishProfile=$(DeploymentConfiguration), but I am not seeing changes.


有人可以解释一下我在这种情况下应该等什么?以及如何使用TFS正确部署Web应用程序项目(因为当我使用.pubxml从Visual Studio发布工作正常,在服务器中正在复制权限文件)
并且想法是使用Visal Studio中的任何手册使TFS中的Build和Release无法使用。

Can someone explain me what should I wait in this case?? and How to deploy correctly the Web Application Project using the TFS (because when I publish from the Visual Studio using the .pubxml works fine, in the server just the rights file are being copied) and the idea is make the Build and Release in the TFS no using nothing manual from Visal Studio.


任何想法和解释都会受到欢迎,谢谢。

Any idea and explanation is going to be welcome, Thanks.

http:// stackoverflow .com / questions / 43985427 / build-and-deploy-a-web-application-with-tfs-2017-using-web-deploy-package

http://stackoverflow.com/questions/43985427/build-and-deploy-a-web-application-with-tfs-2017-using-web-deploy-package

推荐答案

您好yfrancisco,

Hi yfrancisco,

哪个项目无法正确部署?WebSite或Web应用程序?

Which project could not deploy correctly? WebSite or Web Application?

我尝试在TFS中使用  以及下面的MSBuild参数构建一个Web应用程序项目:

I tried build a web application project in TFS using VS Build step with the MSBuild Arguments below:

/ p:DeployOnBuild = true / p:WebPublishMethod = Package / p:PackageAsSingleFile = true / p:SkipInvalidConfigurations = true / p:PackageLocation ="

/p:DeployOnBuild=true /p:WebPublishMethod=Package /p:PackageAsSingleFile=true /p:SkipInvalidConfigurations=true /p:PackageLocation="


(Build.StagingDirectory)\\" / p:PublishProfile =" Yanproject"
(Build.StagingDirectory)\\" /p:PublishProfile="Yanproject"

在构建期间创建的包具有正确的文件。

The Package created during build has the right files.

最好的问候


这篇关于使用Web Deploy Package使用TFS 2017构建和部署Web应用程序的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆