Deployment Using Web Deployment Projects

There are many approaches to deploying your applications to various environments. In this sample, I’ll demonstrate how you can extend the WDP to assist your deployment process. The approach I demonstrate is fairly simplistic and has some limitations, which we will discuss. The following target is taken from the WebApplication1_deploy01.csproj_deploy.wdproj file.

<Target Name="DeployToServer" DependsOnTargets="Build"> <PropertyGroup> <_ServerName>sayed_762</_ServerName> <_VDirName>Sample01</_VDirName> <_ServerDeployPath>\\$(_ServerName)\D$\Stage\$(_VDirName)\</_ServerDeployPath> <_ServerLocalPath>D:\Stage\$(_VDirName)\</_ServerLocalPath> <_ReplaceExisting>true</_ReplaceExisting> </PropertyGroup> <!-- Create ...

Get Inside the Microsoft® Build Engine: Using MSBuild and Team Foundation Build now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.