locked
.targets file RRS feed

  • Question

  • Is it mandantory that we import the Microsoft.Common.targets file in our .targets file?  If so, is there any documentation that defines what targets must be overriden?

    Thanks,

    Mike

    Monday, February 6, 2006 4:22 PM

Answers

  • It is not mandatory. The main reason to import those is if you wish to take advantage of the existing functionality the MSBuild team built for existing languages. If your language is different enough or if your project is not a language project, then it may make sense not to include it.

    The best way to understand how the targets defined in Microsoft.Common.targets work is probably to look in the file. Also, when you build you can set the verbosity higher (by example: msbuild <projectfile> /v:diag) to get a more detailed log and comparing that to the content of the target file.

    Rusty

    Tuesday, February 7, 2006 5:14 PM