Interface ILoadedNuGetPackage
- Namespace
- MonkeyLoader.NuGet
- Assembly
- MonkeyLoader.dll
Represents the information required for NuGet package dependency resolution.
public interface ILoadedNuGetPackage
Properties
AllDependenciesLoaded
Gets whether all dependencies of this package are loaded.
bool AllDependenciesLoaded { get; }
Property Value
Dependencies
Gets the dependencies of the package.
IEnumerable<DependencyReference> Dependencies { get; }
Property Value
Identity
Gets the identity of the package.
PackageIdentity Identity { get; }
Property Value
- PackageIdentity
TargetFramework
Gets the framework targeted with this dependency.
NuGetFramework TargetFramework { get; }
Property Value
- NuGetFramework
Methods
DependsOn(ILoadedNuGetPackage)
Determines whether this package depends on otherPackage
directly or transitively.
bool DependsOn(ILoadedNuGetPackage otherPackage)
Parameters
otherPackage
ILoadedNuGetPackageThe other package to check for.
Returns
- bool
true
if this package (transitively) depends onotherPackage
; otherwise,false
.
DependsOn(string)
Determines whether this package depends on otherId
directly or transitively.
bool DependsOn(string otherId)
Parameters
otherId
string
Returns
- bool
true
if this package (transitively) depends onotherId
; otherwise,false
.
TryResolveDependencies()
Tries to resolve all dependencies of this package.
bool TryResolveDependencies()