Created
November 13, 2019 16:57
-
-
Save CodeTroopers/ff3b954fb106645df95830c17128079d to your computer and use it in GitHub Desktop.
Publish several webapplications of a solution with MSBuild /p:DeployOnBuild=true /p:WebPublishMethod=FileSystem /p:PublishUrl="$(Build.ArtifactStagingDirectory)" /p:DeployDefaultTarget=WebPublish
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<!-- Override target WebFileSystemPublish to include ProjectName in PublishUrl --> | |
<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<PropertyGroup> | |
<WebFileSystemPublishDependsOn> | |
SetPublishUrl; | |
$(WebFileSystemPublishDependsOn); | |
</WebFileSystemPublishDependsOn> | |
</PropertyGroup> | |
<Target Name="SetPublishUrl"> | |
<PropertyGroup> | |
<PublishUrl Condition="'$(PublishUrl)'!=''">$(PublishUrl)\$(ProjectName)</PublishUrl> | |
</PropertyGroup> | |
</Target> | |
</Project> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment