How can I get the standard Post- and Pre-build Event functionality in MPF based custom project type?

Mar 30, 2010 at 12:21 PM

I have added to target to my custom .targets file which is imported in my custom project file following the instruction in this post at MSDN Forums:
http://social.msdn.microsoft.com/forums/en-US/vsx/thread/0387ce89-63d4-4e54-84a8-ce5e979f068e/

<!-- Support for Pre-Build and Post-Build-->
<Target Name="PreBuildEvent">
<Exec Command="$(PreBuildEvent)" Condition=" '$(PreBuildEvent)' != '' "/>
</Target>

<Target Name="PostBuildEvent">
<Exec Command="$(PostBuildEvent)" Condition=" '$(PostBuildEvent)' != '' "/>
</Target>

<!-- Build target -->
<PropertyGroup>
<BuildDependsOn>PreBuildEvent;Compile;PostBuildEvent</BuildDependsOn>
</PropertyGroup>

<Target Name="Build" DependsOnTargets="$(BuildDependsOn)"></Target>

The Post- and Pre-build Event property page is showed but it is disabled. What have I forgot?

¡Thank you very much!