msdeploy

Transforming files with msdeploy

天涯浪子 提交于 2019-12-18 03:00:27
问题 Can I use the config transforms mechanism of MSDeploy to transform other files? 回答1: (another approach) The msdeploy packaging is jsut invoked during an MSbuild run for your project. TransformXml is an included task of a .csproj or .vsproj build. Just modify your build process to invoke that task on whatever file you need. For example, what we do is write a custom target <Target Name="TransformFile"> <TransformXml Source="$(DestinationPath)\$(Sourcefile)" Transform="$(DestinationPath)\$

VS2010 Web Publish command line version of File System deploy

匆匆过客 提交于 2019-12-17 23:36:10
问题 Folks, In a nutshell, I want to replicate this dialog: It's a Visual Studio 2010 ASP.Net MVC project. If I execute this command, I get all the files I want, including the transformed web.configs in the "C:\ToDeploy" directory. I want to replicate this on the command line so I can use it for a QA environment build. I've seen various articles on how to do this on the command line for Remote Deploys, but I just want to do it for File System deploys. I know I could replicate this functionality

Build once and deploy to multiple environments with msdeploy & Visual Studio 2012

泄露秘密 提交于 2019-12-17 15:24:16
问题 Working on centralizing configurations, app settings and connection strings, for multiple solutions, while also switching over to use msdeploy from command line to deploy web apps. Ideally I would want to build the packages once, and get up-to-date configurations as the packages are deployed to each environment. I need some advice on the best approach to take. Use Parameters.xml and SetParameters.xml file to dynamically swap out settings and connection strings. See http://vishaljoshi.blogspot

How do you call msdeploy from powershell when the parameters have spaces?

孤街浪徒 提交于 2019-12-17 07:24:08
问题 I'm running into a problem with spaces in my parameters that I try to send into msdeploy from a powershell script. There are a number of other related articles but none of them solve the problem. Problems Using Power Shell And MSDeploy. Similar SO issue that doesn't work: How to run exe in powershell with parameters with spaces and quotes PowerShell BUG: Executing commands which require quotes and variables is practically impossible Another SO issue that doesn't work:Passing parameters in

msdeploy cannot reach destination despite having web deployment service started

不想你离开。 提交于 2019-12-13 16:22:54
问题 as you can see from the title I am experiencing some trouble deploying to a remote IIS. Here is what I have done so far: I have set up a virtual machine running an IIS7 on Windows Server 2008. I have bridged the VMs network adapter. I have installed and started the "Web Deployment Agent Service" as well as the "Web Management Service". I also created a new IIS manager user and granted him access to the website in question. Now deploying itself works when I do it like this for example: msbuild

Microsoft.Web.WebJobs.Publish producing duplicate assemblies in deploy package

社会主义新天地 提交于 2019-12-13 11:45:13
问题 I have a large number of Azure WebJobs that all deploy to a single Azure App Service, along with a Website on the same Azure App Service. Each WebJob all use the WebJobs SDK and the Microsoft.Web.WebJobs.Publish nuget package (we are up-to-date with version 1.0.13) to package them up for deployment. The following are the MSBuild arguments we use in the CI build (VSTS) to produce the deploy package: /p:DeployOnBuild=true /p:PublishProfile=Release /p:WebPublishMethod=Package /p

MsDeploy Skip Root Web Config deployment only

淺唱寂寞╮ 提交于 2019-12-13 06:44:36
问题 I am using Ms-deploy for Web Deployment. Below command i am using for this msdeploy -verb:sync -source:contentPath="${p:resource/work.dir}${p:component.name}\%BinariesMode%%DirectoryOffset%" -dest:contentPath=%1,ComputerName=localhost -enableLink:AppPoolExtension -enableRule:Donotdeleterule -skip:objectName=filePath,absolutePath="\\Web\.config$" It not only skip the web config of root folder but also of View folder web.config also. How can i overcome this issue. I don't want to use Full path

How to Package/Publish SQL databases with ASP.NET MVC 2 Website?

大兔子大兔子 提交于 2019-12-13 06:44:09
问题 I'm trying to deploy my ASP.NET MVC 2 Website for the first time on a local IIS 7 server, which is configured and running. I've made successful deployments using the Web Deploy option without the databases (so the site isn't fully working yet). Most of the deployment settings are pretty intuitive, however, I have problems with the Package/Publish SQL -tab in the project settings. Here's how it looks like with the errors I'm getting (click for bigger view). It asks for Connection String, but I

How can I use VSTS to build and release my web app to an FTP server?

假装没事ソ 提交于 2019-12-13 02:56:31
问题 Via VSTS I am trying to automate the following process which is currently performed manually: Within VS 2017 perform a publish to file system. Set settings in web.config. Repeat 1 & 2, for each environment, e.g. Test, UAT, Production, etc. Copy those files to an FTP server. Logon to secure infrastructure, download files from FTP, and copy into place on IIS target servers. The secure infrastructure is locked down, and has limited internet access. The FTP is used as a way to move files into

MSDeploy to Azure Web App: Could not connect to the remote computer using the specified process (“Web Management Service”)

狂风中的少年 提交于 2019-12-12 13:31:56
问题 We publish to our Azure Web App using MSBuild MSDeploy in VSO/VSTS Build (vNext) using the script below. This works well. BUT, when assigning the Azure Web App to a custom domain (through the Azure Portal), the publish fails. VSTS Build error on MSDeploy: Publishing with publish method [MSDeploy] Executing command ["C:\Program Files\IIS\Microsoft Web Deploy V3\msdeploy.exe" -source:IisApp='C:\a\8b0700fff\MrProjectMain\Api\wwwroot' -dest:IisApp='myproject-prod-webapp',ComputerName='https:/