Skip to content

Instantly share code, notes, and snippets.

@maartenba
Created July 11, 2018 07:49
Show Gist options
  • Save maartenba/734cf1999af0ad97dddeb0b20b2466c5 to your computer and use it in GitHub Desktop.
Save maartenba/734cf1999af0ad97dddeb0b20b2466c5 to your computer and use it in GitHub Desktop.
Rider - .pubxml for deployment to Azure Web Apps
<?xml version="1.0" encoding="utf-8"?>
<!--
This file is used by the publish/package process of your Web project. You can customize the behavior of this process
by editing this MSBuild file. In order to learn more about this please visit https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>MSDeploy</WebPublishMethod>
<PublishProvider>AzureWebSite</PublishProvider>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<!-- Your Azure Web Apps site URL -->
<SiteUrlToLaunchAfterPublish>http://yourapp.azurewebsites.net</SiteUrlToLaunchAfterPublish>
<!-- Launch the browser after publishing? -->
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<!-- Exclude the App_Data folder? -->
<ExcludeApp_Data>False</ExcludeApp_Data>
<!-- Your Azure Web Apps site publish URL -->
<MSDeployServiceURL>yourapp.scm.azurewebsites.net:443</MSDeployServiceURL>
<!-- IIS aplication path (typicaly your site name) -->
<DeployIisAppPath>yourapp</DeployIisAppPath>
<RemoteSitePhysicalPath />
<SkipExtraFilesOnServer>True</SkipExtraFilesOnServer>
<MSDeployPublishMethod>WMSVC</MSDeployPublishMethod>
<EnableMSDeployBackup>True</EnableMSDeployBackup>
<_SavePWD>True</_SavePWD>
<_DestinationType>AzureWebSite</_DestinationType>
</PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment