custom "build" task
Hello
I'm sorry but i'm new to custom msbuilds, so i hope my question is not too stupid .
I created 2 custom configurations. so now i do have the following configurations :
- Debug
- Release
- Make X
- Make Y
when i "build" with the "Make X" configuration selected, it will call the Target "PerformX", when i "build" with the "Make Y" configuration selected, it will call the Target "PerformY", when i "build" with the "Debug" configuration selected, it will call normal debug process etc..
Also, i don't want that my "MakeX" configuration builds anything, i want to perform other tasks...
So i found this :
<Project DefaultTargets="Build;DoX;DoY" ...
Then on the targets :
<Target Name="DoX" Condition=" '$(Configuration)' == 'ConfX' ">
<Message Text="i do X" Importance="high" />
</Target>
<Target Name="DoY" Condition=" '$(Configuration)' == 'ConfY' ">
<Message Text="i do Y" Importance="high" />
</Target>
But my problem is to avoid executing DoX and DoY when i build...
i tryed this:
<Target Name="Build" Condition=" '$(Configuration)' != 'ConfX' and '$(Configuration)' != 'ConfY' ">
<Message Text="i'mbuilding" Importance="high" />
</Target>
But the problem is as i override "Build", i loose the build actions.... what should i add into "Build" Target to get the normal build target (you see, when you don't add the "build" target, the normal way it builds) ?
any help would be apprecieted.

