Targets file is any valid MSBuild script that contains the definitions of targets, tasks, properties, items, etc. The file should end with the extension of .targets . MSBuild ships with several standard .targets files. You can refer this link for more