introduce dotnet complete command
This commit is contained in:
parent
2048940760
commit
d40a87bc44
9 changed files with 650 additions and 2 deletions
|
@ -24,6 +24,7 @@ namespace Microsoft.DotNet.Tools
|
|||
|
||||
private ProjectCollection _projects;
|
||||
private List<NuGetFramework> _cachedTfms = null;
|
||||
private IEnumerable<string> cachedRuntimeIdentifiers;
|
||||
|
||||
private MsbuildProject(ProjectCollection projects, ProjectRootElement project)
|
||||
{
|
||||
|
@ -149,6 +150,12 @@ namespace Microsoft.DotNet.Tools
|
|||
return ProjectRootElement.GetAllItemsWithElementType(ProjectItemElementType);
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetRuntimeIdentifiers()
|
||||
{
|
||||
return cachedRuntimeIdentifiers ??
|
||||
(cachedRuntimeIdentifiers = GetEvaluatedProject().GetRuntimeIdentifiers());
|
||||
}
|
||||
|
||||
public IEnumerable<NuGetFramework> GetTargetFrameworks()
|
||||
{
|
||||
if (_cachedTfms != null)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue