Created
July 15, 2024 20:56
-
-
Save roozbehid/b700ffa2ec911e9866883c6989b02105 to your computer and use it in GitHub Desktop.
Msbuild hack to publish your project while building it
This file contains hidden or 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
| <Target Name="PublishAfterBuild" AfterTargets="Build" Condition="'$(PublishCallWithinBuild)' != 'true' "> | |
| <MSBuild Projects="$(MSBuildThisFileFullPath)" Targets="Publish" Properties="PublishCallWithinBuild=true" /> | |
| </Target> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment