Complete configurations based on project file if present.
This commit is contained in:
parent
7ae822277d
commit
f77ee9a4d7
4 changed files with 20 additions and 3 deletions
|
@ -25,6 +25,7 @@ namespace Microsoft.DotNet.Tools
|
|||
private ProjectCollection _projects;
|
||||
private List<NuGetFramework> _cachedTfms = null;
|
||||
private IEnumerable<string> cachedRuntimeIdentifiers;
|
||||
private IEnumerable<string> cachedConfigurations;
|
||||
|
||||
private MsbuildProject(ProjectCollection projects, ProjectRootElement project)
|
||||
{
|
||||
|
@ -168,6 +169,12 @@ namespace Microsoft.DotNet.Tools
|
|||
return _cachedTfms;
|
||||
}
|
||||
|
||||
public IEnumerable<string> GetConfigurations()
|
||||
{
|
||||
return cachedConfigurations ??
|
||||
(cachedConfigurations = GetEvaluatedProject().GetConfigurations());
|
||||
}
|
||||
|
||||
public bool CanWorkOnFramework(NuGetFramework framework)
|
||||
{
|
||||
foreach (var tfm in GetTargetFrameworks())
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue