Apparently, for the transform to be executed, you have to specify a build configuration using:
/p:Configuration=Release