src/Resolvers/Microsoft.NET.Sdk.WorkloadManifestReader/WorkloadResolver.cs
/// <summary>
/// Gets the version of a workload pack for this resolver's SDK band
/// </summary>
/// <remarks>
/// Used by the MSBuild SDK resolver to look up which versions of the SDK packs to import.
/// </remarks>
Gets the version of a workload pack for this resolver's SDK band
Gets the version of a workload pack for this resolver ' s SDK band
public PackInfo? TryGetPackInfo(string packId)
        {
            if (string.IsNullOrWhiteSpace(packId))
            {
                throw new ArgumentException($"'{nameof(packId)}' cannot be null or whitespace", nameof(packId));
            }
            if (_packs.TryGetValue(new WorkloadPackId (packId), out var pack))
            {
                return CreatePackInfo(pack, GetAliasedPackPath(pack));
            }
            return null;
        }
public PackInfo ? TryGetPackInfo ( string packId ) { if ( string . IsNullOrWhiteSpace ( packId ) ) { throw new ArgumentException ( $" ' { nameof ( packId ) } ' cannot be null or whitespace " , nameof ( packId ) ) ; } if ( _packs . TryGetValue ( new WorkloadPackId ( packId ) , out var pack ) ) { return CreatePackInfo ( pack , GetAliasedPackPath ( pack ) ) ; } return null ; }
Gets the version of a workload pack for this resolver's SDK band
Gets the version of a workload pack for this resolver ' s SDK band
packId
string
remarks
Used by the MSBuild SDK resolver to look up which versions of the SDK packs to import.
Used by the MSBuild SDK resolver to look up which versions of the SDK packs to import .