asp.net - TFS Build Process Publishes Web Site under different name than specified in Publish Profile -


I've been using the building to publish a Web site using TFS I've defined published a profile Am It is revealed, but the Web application does not publish a Web application project names, specify names published profile I if I published using a published profile on your local machine, it published profile Publishes with the name specified in I, I am using an administrative account in both cases, although it is a TFS Am local manufacture of non-domain account case be

Use logic with this type (proper details removed for security reasons) :.

  / p: DeployOnBuild = true / p: DeployTarget = MsDeployPublish / p: PublishProfile = MyProfile / p: AllowUntrustedCertificate = true / p: MSDeployPublishMethod = WMSVC / p: MSDeployServiceUrl = https: // SomeName : 8172 / MsDeploy.axd / p: UserName = a name \ LocalAdminDude / p: password = Kucpasward   

publish profile itself looks like this:

  & Lt; Xml version = "1.0" encoding = "UTF-8"? & Gt; & Lt ;! - This file went to using published / package process of your web project, you can customize the behavior of the process by editing the MSBuild file. To learn more about this in order, please see http://go.microsoft.com/fwlink/?LinkID=208121. - & gt; & Lt; Project ToolsVersion = "4.0" xmlns = "http://schemas.microsoft.com/developer/msbuild/2003" & gt; & Lt; PropertyGroup & gt; & Lt; WebPublishMethod & gt; MSDeploy & lt; / WebPublishMethod & gt; & Lt; SiteUrlToLaunchAfterPublish / & gt; Http: // server / NameIWant & lt; / SiteUrlToLaunchAfterPublish & gt; & Lt; MSDeployServiceURL & gt; Https: // server: 8172 / msdeploy.axd & lt; / MSDeployServiceURL & gt; & Lt; DeployIisAppPath & gt; Default Web Site / NameIWant & lt; / DeployIisAppPath & gt; & Lt; Remote Sites Fiatic Path / & gt; & Lt; SkipExtraFilesOnServer & gt; This is true & lt; / SkipExtraFilesOnServer & gt; & Lt; MSDeployPublishMethod & gt; WMSVC & lt; / MSDeployPublishMethod & gt; & Lt; Username & gt; Server \ LocalAdminDude & lt; / Username & gt; & Lt; _SavePWD & gt; This is true & lt; / _SavePWD & gt; & Lt; / PropertyGroup & gt; & Lt; / Project & gt; Basically if my web project has been  Name IWantPROJECT  name, so I want to publish it only a  NameIWant  named website. If I publish at the local level, then it works, if I go through the TFS with the above parameters, instead of publishing it as  NameIWantPROJECT , instead of what I have specified Does. Try using /p: Instead DeployIisAppPath / p: PublishProfile, add the following logic:   

/ p: DeployIisAppPath = "Default Web Site / Name IWWant"

This worked for me with TFS 2010.

Comments

Popular posts from this blog

excel vba - How to delete Solver(SOLVER.XLAM) code -

github - Teamcity & Git - PR merge builds - anyway to get HEAD commit hash? -

ios - Replace text in UITextView run slowly -