Skip to content

Instantly share code, notes, and snippets.

@roozbehid
Created July 15, 2024 20:56
Show Gist options
  • Select an option

  • Save roozbehid/b700ffa2ec911e9866883c6989b02105 to your computer and use it in GitHub Desktop.

Select an option

Save roozbehid/b700ffa2ec911e9866883c6989b02105 to your computer and use it in GitHub Desktop.
Msbuild hack to publish your project while building it
<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