I've a custom file type (in a C++ project, like the .masm files -> BuildCustomization).
Its definition contains
<ItemGroup><AvailableItemName Include="MyFile"><Targets>MyTarget1</Targets></AvailableItemName></ItemGroup>
and I have
<PropertyGroup><BuildDependsOn>MyTarget2;$(BuildDependsOn)</BuildDependsOn></PropertyGroup>
and the 2 targets (just showing a text "SuperText + @(MyFile)") ...
this "works" in a way but I don't understand it
when I compile the project, the MyTarget2 is executed but not the MyTarget1 and when I compile a file by selecting it and right-click -> compile... then MyTarget1 is executed but not MyTarget2 ... I could understand the second one... but I don't understand why MyTarget1 is not executed when compiling the project. Can someone explain me that? Is this ... a bug in my script? Why could this be? Or is this normal? In this case... why?
I think... that I have copied everything exactly from the book Inside MsBuild.. the Doc2Html example... but maybe I'm still missing something... maybe I'm going and really copy pasting it and see if I can get this working... this simply cannot be that difficult... it cannot... that's impossible... and if it doesn't work, I'm going to install Visual Studio 2010 (because that's what they say they used...) and if this still doesn't work, I'm going to contact the author... that's... I don't know... in the end it's me missing a comma or a dot or one letter, word or file... or it's just that I didn't plant enough trees in the summer... whatever...
Rudolf