Install webdeploy on W2016 IIS 10

I have to install new management tool called “Management Service” in Windows Features In order to install this: Open server roles / feature Find Management Tools Check Management service Update from other people experience you might need to restart the service Reinstall/Repair the installation of web deploy if you used installer There is a option … Read more

(MSDeploy) Deploying Contents of a Folder to a Remote IIS Server

I just wrote a blog post to answer this at http://sedodream.com/2012/08/20/WebDeployMSDeployHowToSyncAFolder.aspx. From your question it looks like you are pretty familiar with MSDeploy so the answer might be a bit verbose but I wanted people with less knowledge of MSDeploy to be able to understand. I’ve pasted the answer below. Web Deploy (aka MSDeploy) uses … Read more

_CopyWebApplication with web.config transformations

I’ve been hitting my head against the wall for this. After hiking through the MSBuild targets I’ve come across something very “opaque”. Long story short: Try using the new _WPPCopyWebApplication. It works on my machine. The old _CopyWebApplication does not support transformations for legacy reasons. This is what I do: msbuild /t:Rebuild /p:OutDir=..\publish\;Configuration=Release;UseWPP_CopyWebApplication=True;PipelineDependsOnBuild=False MvcApplication1\MvcApplication1.csproj # … Read more

VS2010 Web Publish command line version of File System deploy

Ok, finally figured this out. The command line you need is: msbuild path/to/your/webdirectory/YourWeb.csproj /p:Configuration=Debug;DeployOnBuild=True;PackageAsSingleFile=False You can change where the project outputs to by adding a property of outdir=c:\wherever\ in the /p: section. This will create the output at: path/to/your/webdirectory/obj/Debug/Package/PackageTmp/ You can then copy those files from the above directory using whatever method you’d like. I’ve … Read more

How to use MsBuild MsDeployPublish to target local file system?

As per my answer from Using MSBuild, how do I build an MVC4 solution from the command line (applying Web.config transformations in the process) and output to a folder? msbuild ProjectFile.csproj /p:Configuration=Release ^ /p:Platform=AnyCPU ^ /t:WebPublish ^ /p:WebPublishMethod=FileSystem ^ /p:DeleteExistingFiles=True ^ /p:publishUrl=c:\output Or if you are building the solution file: msbuild Solution.sln /p:Configuration=Release ^ /p:DeployOnBuild=True … Read more

Visual Studio 2010 Publish Web feature not including all DLLs

None of these answers are sufficient in my mind. This does seem to be a genuine bug. I will update this response if I ever find a non-hack solution, or Microsoft fixes the bug. Update: Doesn’t seem promising. https://connect.microsoft.com/VisualStudio/feedback/details/731303/publish-web-feature-not-including-all-dlls

Make MSDeploy (Visual Studio) not delete App_Data folder but delete everything else

It can be done when you invoke msdeploy manually – just add the following parameter: -skip:Directory=\\App_Data See Web Deploy Operation Settings. The path is a regular expression, so it is quite flexible. If you deploy using the VS-generated ProjectName.deploy.cmd script, you can also pass this parameter in the _MsDeployAdditionalFlags environment variable (when running that script). … Read more

Valid Parameters for MSDeploy via MSBuild

Here’s a list I’ve compiled for my own reference, along with some of the legal values that can be used. Note that these are passed into MSBuild using the /p:<PropertyName>=<Value> syntax. DeployOnBuild True False DeployTarget MsDeployPublish Package Configuration Name of a valid solution configuration CreatePackageOnPublish True False DeployIisAppPath <Web Site Name>/<Folder> MsDeployServiceUrl Location of MSDeploy … Read more

WebDeploy – Not able to log on the user ‘.\WDeployConfigWriter’

I had this too but with a slightly different detail Not able to log on the user ‘.\WDeployConfigWriter’. Logon failure: the specified account password has expired. Full credit to this blog, the problem is that the Web Deploy installer creates users with expiring passwords that are used to elevate permissions during deployment. The fix is … Read more

MSBuild target package not found

I just got this working without installing VS2010 by following these steps on the build server: If .NET Framework 4 isn’t installed, install it Install the Web Deployment tool from http://www.iis.net/download/webdeploy From the C:\Program Files\MSBuild\Microsoft\VisualStudio\v10.0 folder on your dev machine copy the “Web” and “Web Applications” folders to the equivalent directory on your build server. … Read more