Therefore, the location of the Import element can affect the values of properties and items. When MSBuild reaches an Import element, the imported project is effectively inserted into the importing project at the location of the Import element. For example:įollowing the Import element, define all properties and items that must override default definitions of properties and items in the imported project. Use the Import element to import the project. To import a projectĭefine, in the importing project file, all properties and items that are used as parameters for properties and items in the imported project. For more information on the Import element, see Import element (MSBuild). The Project attribute specifies the path to the imported project file. The project file that is being imported must be a valid MSBuild project file and contain well-formed XML. The Import element is used to insert one project file into another project file. Instead of including the complete description of those tasks or targets in every project file, you can save a target in a separate project file and then import that project into any other project that needs to use the target. If you have authored several MSBuild project files, you might have discovered that you need to use the same tasks and targets in different project files.
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |