Looking at the build output from a .NET 4.5 project vs a .NET 3.5 project, it seems like when targeting .NET 3.5 Xamarin Studio does not use xbuild, but rather just calls mcs, etc on all of the files in the project. Is this true? The reason I ask is because I cannot get Xamarin Studio to execute my "BeforeTargets" tasks in a .NET 3.5 project, but the same XML in a .NET 4.5 project is fine. Furthermore, running xbuild from the command line on the project builds the .NET 3.5 project as expected.
Is there another way to get the BeforeTargets behavior for .NET 3.5 in Xamarin Studio? Really I just need a task to execute (and have it be compatible with Visual Studio!!) before the actual build takes place (specifically I emit a git commit hash, and copy some DLL files from a specified location).