More build cleanup and tweaks

- Added generic Get<T> to build context
This commit is contained in:
David Fowler 2016-02-15 10:07:39 -08:00
parent 078d6a8d5f
commit c7e9139fa6
4 changed files with 17 additions and 15 deletions

View file

@ -33,6 +33,8 @@ namespace Microsoft.DotNet.Cli.Build.Framework
_maxTargetLen = targets.Values.Select(t => t.Name.Length).Max();
}
public T Get<T>(string name) => (T)this[name];
public BuildTargetResult RunTarget(string name) => RunTarget(name, force: false);
public BuildTargetResult RunTarget(string name, bool force)