OpenMod Docs OpenMod Docs
OpenMod Docs OpenMod Docs
OpenMod .NET Plugin Framework.

Class NuGetPluginAssembliesSource

Inheritance
System.Object
NuGetPluginAssembliesSource
Implements
IPluginAssembliesSource
IDisposable
Namespace: OpenMod.Core.Plugins.NuGet
Assembly: OpenMod.Core.dll
Syntax
public class NuGetPluginAssembliesSource : object, IPluginAssembliesSource, IDisposable

Constructors

| Improve this Doc View Source

NuGetPluginAssembliesSource(NuGetPackageManager)

Declaration
public NuGetPluginAssembliesSource(NuGetPackageManager packageManager)
Parameters
Type Name Description
NuGetPackageManager packageManager

Methods

| Improve this Doc View Source

Dispose()

Declaration
public void Dispose()
| Improve this Doc View Source

InstallPackageAsync(String, Nullable<String>, Boolean)

Declaration
public Task<NuGetInstallResult> InstallPackageAsync(string packageName, string? version = null, bool isPreRelease = false)
Parameters
Type Name Description
System.String packageName
System.Nullable<System.String> version
System.Boolean isPreRelease
Returns
Type Description
Task<NuGetInstallResult>
| Improve this Doc View Source

IsPackageInstalledAsync(String)

Declaration
public virtual Task<bool> IsPackageInstalledAsync(string packageName)
Parameters
Type Name Description
System.String packageName
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

LoadPluginAssembliesAsync()

Declaration
public virtual Task<ICollection<Assembly>> LoadPluginAssembliesAsync()
Returns
Type Description
Task<ICollection<Assembly>>
| Improve this Doc View Source

UninstallPackageAsync(String)

Declaration
public Task<bool> UninstallPackageAsync(string packageName)
Parameters
Type Name Description
System.String packageName
Returns
Type Description
Task<System.Boolean>
| Improve this Doc View Source

UpdatePackageAsync(String, Nullable<String>, Boolean)

Declaration
public Task<NuGetInstallResult> UpdatePackageAsync(string packageName, string? version = null, bool isPreRelease = false)
Parameters
Type Name Description
System.String packageName
System.Nullable<System.String> version
System.Boolean isPreRelease
Returns
Type Description
Task<NuGetInstallResult>

Implements

IPluginAssembliesSource
IDisposable

Extension Methods

DisposeHelper.DisposeSyncOrAsync(Object)