<PackageReference Include="Microsoft.Extensions.DependencyModel" Version="11.0.0-preview.1.26104.118" />

Microsoft.Extensions.DependencyModel.Library

public class Library
Represents a library dependency in a dependency manifest.

Gets the list of dependencies of this library.

public string Hash { get; }

Gets the hash of the package, if this library is a package.

public string HashPath { get; }

Gets the relative path to the library package hash file, if this library is a package.

public string Name { get; }

Gets the library name.

public string Path { get; }

Gets the relative path to package assets, if this library is a package.

public string RuntimeStoreManifestName { get; }

public bool Serviceable { get; }

Gets a value that indicates whether this library can be serviced, if this library is a package.

public string Type { get; }

Gets the type of this library.

public string Version { get; }

Gets the version of this library.

public Library(string type, string name, string version, string hash, IEnumerable<Dependency> dependencies, bool serviceable)

Initializes a new instance of the Library class using the specified library properties.

public Library(string type, string name, string version, string hash, IEnumerable<Dependency> dependencies, bool serviceable, string path, string hashPath)

Initializes a new instance of the Library class using the specified library properties and path.

public Library(string type, string name, string version, string hash, IEnumerable<Dependency> dependencies, bool serviceable, string path, string hashPath, string runtimeStoreManifestName = null)

Initializes a new instance of the Library class using the specified library properties, path and runtime store manifest.