Class LibraryProblem
A library that a project references, or that one it references depends on, and that could not be loaded.
public sealed record LibraryProblem : IEquatable<LibraryProblem>
- Inheritance
-
LibraryProblem
- Implements
- Inherited Members
Constructors
LibraryProblem(string, LibraryProblemKind, ImmutableArray<string>)
A library that a project references, or that one it references depends on, and that could not be loaded.
public LibraryProblem(string Name, LibraryProblemKind Kind, ImmutableArray<string> Related)
Parameters
NamestringThe name of the library, as it was asked for.
KindLibraryProblemKindWhy it could not be.
RelatedImmutableArray<string>What else the problem is about: for Cyclic, the libraries on the cycle in the order they depend on one another, ending with the one the path started from; for DependencyFailed, the library that failed; for Unreadable, the reason it cannot be read; for NotFound, the identity that was asked for (LibraryIdentity), when it gives an identifier, followed by the name of the library the source has of that identifier, when it is another name; for DuplicateName, the reference that is loaded and the one that is not; for InvalidIdentity, the identity.
Properties
Kind
Why it could not be.
public LibraryProblemKind Kind { get; init; }
Property Value
Name
The name of the library, as it was asked for.
public string Name { get; init; }
Property Value
Related
What else the problem is about: for Cyclic, the libraries on the cycle in the order they depend on one another, ending with the one the path started from; for DependencyFailed, the library that failed; for Unreadable, the reason it cannot be read; for NotFound, the identity that was asked for (LibraryIdentity), when it gives an identifier, followed by the name of the library the source has of that identifier, when it is another name; for DuplicateName, the reference that is loaded and the one that is not; for InvalidIdentity, the identity.
public ImmutableArray<string> Related { get; init; }