Skip to content

Instantly share code, notes, and snippets.

@rschiefer
Created March 23, 2017 18:18
Show Gist options
  • Save rschiefer/f87b5605b6ea63a0dc19a7984fa03b5d to your computer and use it in GitHub Desktop.
Save rschiefer/f87b5605b6ea63a0dc19a7984fa03b5d to your computer and use it in GitHub Desktop.
<?xml version="1.0" encoding="utf-8" ?>
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<AutoDeployOnVSBuild>true</AutoDeployOnVSBuild>
<!--<AutoDeployOnVSBuild>false</AutoDeployOnVSBuild>-->
<AutoDeployPublishProfileName>LocalFile</AutoDeployPublishProfileName>
</PropertyGroup>
<Target Name="AfterBuild">
<MSBuild
Condition="'$(AutoDeployOnVSBuild)'=='true' AND '$(DeployOnBuild)'!='true'"
Projects="$(MSBuildProjectFullPath)"
Properties="DeployOnBuild=true;PublishProfile=$(AutoDeployPublishProfileName);BuildingInsideVisualStudio=False"/>
</Target>
</Project>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment