Class LoadedNuGetPackage
- Namespace
- MonkeyLoader.NuGet
- Assembly
- MonkeyLoader.dll
Represents a loaded pseudo-package, i.e. loaded game assemblies that can be referenced as NuGet packages by mods.
public sealed class LoadedNuGetPackage : ILoadedNuGetPackage
- Inheritance
-
LoadedNuGetPackage
- Implements
- Inherited Members
Constructors
LoadedNuGetPackage(PackageIdentity, NuGetFramework, params DependencyReference[])
Creates a new loaded pseudo-package instance with the given parameters.
public LoadedNuGetPackage(PackageIdentity identity, NuGetFramework targetFramework, params DependencyReference[] dependencies)
Parameters
identityPackageIdentityThe identity of the loaded package.
targetFrameworkNuGetFrameworkThe framework targeted by the package.
dependenciesDependencyReference[]The dependencies of the package.
LoadedNuGetPackage(PackageIdentity, NuGetFramework, IEnumerable<DependencyReference>)
Creates a new loaded pseudo-package instance with the given parameters.
public LoadedNuGetPackage(PackageIdentity identity, NuGetFramework targetFramework, IEnumerable<DependencyReference> dependencies)
Parameters
identityPackageIdentityThe identity of the loaded package.
targetFrameworkNuGetFrameworkThe framework targeted by the package.
dependenciesIEnumerable<DependencyReference>The dependencies of the package.
Properties
AllDependenciesLoaded
Gets whether all dependencies of this package are loaded.
public bool AllDependenciesLoaded { get; }
Property Value
Dependencies
Gets the dependencies of the package.
public IEnumerable<DependencyReference> Dependencies { get; }
Property Value
Identity
Gets the identity of the package.
public PackageIdentity Identity { get; }
Property Value
- PackageIdentity
TargetFramework
Gets the framework targeted with this dependency.
public NuGetFramework TargetFramework { get; }
Property Value
- NuGetFramework
Methods
DependsOn(ILoadedNuGetPackage)
Determines whether this package depends on otherPackage directly or transitively.
public bool DependsOn(ILoadedNuGetPackage otherPackage)
Parameters
otherPackageILoadedNuGetPackageThe other package to check for.
Returns
- bool
trueif this package (transitively) depends onotherPackage; otherwise,false.
DependsOn(string)
Determines whether this package depends on otherId directly or transitively.
public bool DependsOn(string otherId)
Parameters
otherIdstring
Returns
- bool
trueif this package (transitively) depends onotherId; otherwise,false.
TryResolveDependencies()
Tries to resolve all dependencies of this package.
public bool TryResolveDependencies()