More build cleanup and tweaks
- Added generic Get<T> to build context
This commit is contained in:
parent
078d6a8d5f
commit
c7e9139fa6
4 changed files with 17 additions and 15 deletions
|
@ -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)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue