I am trying to make a postbuild event reference to a .props file in a .vcxproj
What elements fits between the PostBuildEvent Tag?
Although it’s not valid i am looking for something like this:
<ItemGroup>
<PostBuildEvent>
<ProjectReference Include="default.props">
</ProjectReference>
</PostBuildEvent>
</ItemGroup>
I don’t think you can include a .props file inside an event. Include the props file you want outside the ItemGroup. For example:
In your props file, you can have your PostBuildEvent defined:
The above example is from How to: Use Build Events in MSBuild Projects. Please note that you may need to set the item PostBuildEventUseInBuild in the PropertyGroup in your props file.