TFS: What is WebDeploy ??

Web Deploy??

Web Deploy is a Microsoft open source application packaging and deployment framework build using MSBuild scripting.

MSDeploy framework would do Web.Config regex and application package generation. Application package would be generated as a zipped file having all the deployable artifacts.

Presence of projectname.wpp.targets, file in the same folder where “projectname.website” project lies would lead to an assumption that web site during the compilation would like to generate application package or in technical terms would like to trigger execution of Msdeploy framework to do Web.Config regex and generate application packages.

Attach Website.UI.wpp.targets & Platorm.wpp.targets are all responsible for generating application package and inclusion of certain files not part of ourdir of the MS build for an application.

watch Platorm.wpp.targets

<Project ToolsVersion=”4.0″ xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″>
<!–These properties are specific to Web Deploy–>
<PropertyGroup Condition=”‘$(Configuration)|$(Platform)’ == ‘ source link Release – DEV|AnyCPU’“>
<MSDeployServiceUrl></MSDeployServiceUrl>
<DeployIisAppPath>$(ProjectName)</DeployIisAppPath>
<AllowUntrustedCertificate>True</AllowUntrustedCertificate>
<DeployOnBuild>True</DeployOnBuild>
<!–This is responsible for only creation of package–>
<DeployTarget>Package</DeployTarget>
<CreatePackageOnPublish></CreatePackageOnPublish>
<MSDeployPublishMethod></MSDeployPublishMethod>
<UserName></UserName>
<Password></Password>
<SkipExtraFilesOnServer></SkipExtraFilesOnServer>
</PropertyGroup>
<PropertyGroup Condition=” ‘$(Configuration)|$(Platform)’ == ‘ follow Release – Staging|AnyCPU‘ “>
<DesktopBuildPackageLocation></DesktopBuildPackageLocation>
<MSDeployServiceUrl></MSDeployServiceUrl>
<DeployIisAppPath></DeployIisAppPath>
<AllowUntrustedCertificate></AllowUntrustedCertificate>
<DeployOnBuild>True</DeployOnBuild>
<!–This is responsible for only creation of package–>
<DeployTarget>Package</DeployTarget>
<CreatePackageOnPublish></CreatePackageOnPublish>
<MSDeployPublishMethod></MSDeployPublishMethod>
<UserName></UserName>
<Password></Password>
<SkipExtraFilesOnServer></SkipExtraFilesOnServer>
<ExcludeGeneratedDebugSymbol>true</ExcludeGeneratedDebugSymbol>
</PropertyGroup>
<PropertyGroup Condition=” ‘$(Configuration)|$(Platform)’ == ‘ Release – Prod|AnyCPU‘ “>
<DesktopBuildPackageLocation></DesktopBuildPackageLocation>
<MSDeployServiceUrl></MSDeployServiceUrl>
<DeployIisAppPath></DeployIisAppPath>
<AllowUntrustedCertificate></AllowUntrustedCertificate>
<DeployOnBuild>True</DeployOnBuild>
<!–This is responsible for only creation of package–>
<DeployTarget>Package</DeployTarget>
<CreatePackageOnPublish></CreatePackageOnPublish>
<MSDeployPublishMethod></MSDeployPublishMethod>
<UserName></UserName>
<Password></Password>
<SkipExtraFilesOnServer></SkipExtraFilesOnServer>
<ExcludeGeneratedDebugSymbol>true</ExcludeGeneratedDebugSymbol>
</PropertyGroup>
</Project>

 

Website.UI.wpp.targets

<Project ToolsVersion=”4.0″ xmlns=”http://schemas.microsoft.com/developer/msbuild/2003″>
<!–These Import are specific to Web Deploy on build server–>
<!–Please don’t change it–>
<!–test checking–>
<Import Project=”$(outdir)..\Sources\Automation\DeployMSDeploy\Platorm.wpp.targets” Condition=”‘$(IsDesktopBuild)’ == ‘false’ and (‘$(Configuration)|$(Platform)’ == ‘Release|AnyCPU’) and Exists(‘$(outdir)..\Sources\Automation\DeployMSDeploy\Platorm.wpp.targets’) “/>
<Import Project=”$(outdir)..\..\Sources\Automation\DeployMSDeploy\Platorm.wpp.targets” Condition=”‘$(IsDesktopBuild)’ == ‘false’ and (‘$(Configuration)|$(Platform)’ == ‘Release|AnyCPU’) and !Exists(‘$(outdir)..\Sources\Automation\DeployMSDeploy\Platorm.wpp.targets’)”/>
<!–Including the version.txt file during the publish–>
<ItemGroup>
<FilesForPackagingFromProject Include=”$(outdir)..\Sources\Version\xxx\version.txt”>
<DestinationRelativePath>%(FileName)%(Extension)</DestinationRelativePath>
<FromTarget>$(ProjectName).wpp.targets</FromTarget>
</FilesForPackagingFromProject>
</ItemGroup>
<PropertyGroup>
<DeployIisAppPath>WebSiteName</DeployIisAppPath>
</PropertyGroup>
</Project>

 

Leave a Reply

Your email address will not be published. Required fields are marked *