Share via


PackageDependencyContext.Remove Method

Definition

Removes a resolved package dependency from the current process' package graph (that is, a run-time reference for a framework package dependency that was added by using the PackageDependency.Add method).

public:
 virtual void Remove() = Remove;
void Remove();
public void Remove();
function remove()
Public Sub Remove ()

Remarks

This method does not unload loaded resources such as DLLs. After removing a package dependency, any files loaded from the package can continue to be used. Future file resolution will fail to see the removed package dependency.

Successful calls to this method change the PackageDependency.GenerationId value.

Applies to