In my csproj, I am importing a very large heavily used targets file (which I am not allowed to break down as of now). This targets file however, sets up various target dependencies by using AfterTargets='Build'.
In the csproj where I import this large targets file, I want to remove some of the After build target dependencies. For example, say the following target gets imported:
<!-- This is in the large targets file --> <Target Name="Target1" AfterTargets="Build"> </Target> How do I remove Target1 from being executed After build in the csproj I am importing it in. What is a good way to accomplish that?