forked from dotnet/msbuild
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Ensure built-in and imported targets are respected by the solution pr…
…oject generator. The goal is to take whatever target the user specified from the command-line and add it to the metaproj. However, we add targets and targets can be imported. This change ensures that command-line targets are added last after everything else and they're only added if they don't already exist. This removes the need to know what built-in targets are there. If the user specifies /t:Clean, then it's still added as a built-in target and at the end when adding user specified targets it is ignored. Another case is for projects. We add a targets like "Project_Name", "Project_Name:Clean" where the project name becomes a target. However we also add sub-targets which need to be respected. These are also now added before the user specified targets are added. If you specify /t:Project_Name:Clean, it won't be added to the project as a user specified target. Unit test has been updated to hopefully test all built-in targets. Closes dotnet#1587
- Loading branch information
Showing
2 changed files
with
46 additions
and
43 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters