it:ad:msbuild:howto:project_syntax_defaultprojects_and_initialprojects

IT:AD:MSbuild:HowTo:Project Syntax/InitialProjects and DefaultProjects

References:

Summary

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="MyTarget">
...
</Project> 

On the other hand, InitialTargets are always executed, before any DefaultTargets, whether defined in the xml root or via a command line parameter.

<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003" InitialTargets="Clean">
...
</Project> 

  • /home/skysigal/public_html/data/pages/it/ad/msbuild/howto/project_syntax_defaultprojects_and_initialprojects.txt
  • Last modified: 2023/11/04 22:59
  • by 127.0.0.1