Depends on the platform (x86 or 64) you define, you can find the MSbuild scripts actually being executed when compiling each project under the following directories

  • x86 – C:\Windows\Microsoft.NET\Framework\v4.0.30319
  • x64 – C:\Windows\Microsoft.NET\Framework64\v4.0.30319

The CoreCompile task is defined in file which will import For web applications, it is defined under C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\WebApplications\

You can use either places to customize your own build processes instead of modifying build templates (why? that’s another topic).