Is there a way to use MSBuild syntax to skip a specific target?

I have a file consisting of a lot of properties (lines containing /property:X=Y) that I want to pass on to a recursively called instance of MSBuild, but this file also contains a /target:X line, that I do not want to have any effect.

I don't have the option to modify the file.

Edit
Report