lextm / msbuildlaunchpad

MSBuild LaunchPad
12 stars 6 forks source link

Added support of Import-Element in MSBuild .proj files #3

Closed Rtwo-Dtwo closed 7 years ago

Rtwo-Dtwo commented 7 years ago

The Import-Element in MSBuild .proj files allows importing the contents of one project file in another (see MSBuild Import Element). Often the build targets are separated in another project file to re-use them. Currently GenericScriptParser parses Target-Elements only in the source project file.

  1. Extended GenericScriptParser to support Import-Element
  2. The extension is recursive: Contains an imported project file another import, parsing will continue in the next import
  3. The extension allows relative paths in the Project-Attribute of Import-Element
  4. Added an unit test that tests the Import-Element parsing extension