src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadResolver.cs
/// <summary>
/// Gets the installed workload packs of a particular kind
/// </summary>
/// <remarks>
/// Used by MSBuild resolver to scan SDK packs for AutoImport.props files to be imported.
/// Used by template engine to find templates to be added to hive.
/// </remarks>
Gets the installed workload packs of a particular kind
Gets the installed workload packs of a particular kind
public IEnumerable<PackInfo> GetInstalledWorkloadPacksOfKind(WorkloadPackKind kind)
        {
            foreach (var pack in _packs)
            {
                if (pack.Value.Kind != kind)
                {
                    continue;
                }
                var aliasedPath = GetAliasedPackPath(pack.Value);
                if (PackExists(aliasedPath, pack.Value.Kind))
                {
                    yield return CreatePackInfo(pack.Value, aliasedPath);
                }
            }
        }
public IEnumerable < PackInfo > GetInstalledWorkloadPacksOfKind ( WorkloadPackKind kind ) { foreach ( var pack in _packs ) { if ( pack . Value . Kind != kind ) { continue ; } var aliasedPath = GetAliasedPackPath ( pack . Value ) ; if ( PackExists ( aliasedPath , pack . Value . Kind ) ) { yield return CreatePackInfo ( pack . Value , aliasedPath ) ; } } }
Gets the installed workload packs of a particular kind
Gets the installed workload packs of a particular kind
kind
WorkloadPackKind
remarks
Used by MSBuild resolver to scan SDK packs for AutoImport.props files to be imported.
Used by template engine to find templates to be added to hive.
Used by MSBuild resolver to scan SDK packs for AutoImport . props files to be imported . Used by template engine to find templates to be added to hive .