Skip to content

Instantly share code, notes, and snippets.

@sayedihashimi
Created January 26, 2016 21:47
Show Gist options
  • Select an option

  • Save sayedihashimi/caec2c82d479cf6717d2 to your computer and use it in GitHub Desktop.

Select an option

Save sayedihashimi/caec2c82d479cf6717d2 to your computer and use it in GitHub Desktop.
Shows how to override publishUrl with Configuration
<?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 http://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<WebPublishMethod>FileSystem</WebPublishMethod>
<LastUsedBuildConfiguration>Release</LastUsedBuildConfiguration>
<LastUsedPlatform>Any CPU</LastUsedPlatform>
<SiteUrlToLaunchAfterPublish />
<LaunchSiteAfterPublish>True</LaunchSiteAfterPublish>
<ExcludeApp_Data>False</ExcludeApp_Data>
<publishUrl>c:\temp\publish\default</publishUrl>
<DeleteExistingFiles>False</DeleteExistingFiles>
</PropertyGroup>
<PropertyGroup>
<publishUrl Condition=" '$(Configuration)' != '' ">c:\temp\publish\$(Configuration)</publishUrl>
<publishUrl Condition=" '$(Configuration)' == '' and '$(LastUsedBuildConfiguration)'!='' ">c:\temp\publish\$(LastUsedBuildConfiguration)</publishUrl>
</PropertyGroup>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment