You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bug
With .Net Core 3.0 release we get new feature - assembly unloading.
This opens the way to full freeing up resources in long-time sessions:
when unloading modules
(auto) removing unneeded compiled classes and script blocks
(auto) removing unneeded types created by means of Add-Type
Proposed technical implementation details
Unload feature requires a complete lack of dependencies and references to this assembly before it can be unloaded. It is necessary to investigate whether it is possible to achieve this in PowerShell Core.
Reacted by Christoph Bergmeister, Joel Bennett, Jan Egil Ring, James Ruskin, Andrew Pearce, Matt McNabb, Greg Wojan, Jonathan Weinberg, gaelcolas, Chris Gardner and 9 more
Issue-Discussionthe issue may not have a clear classification yet. The issue may generate an RFC or may be reclassifIssue-Enhancementthe issue is more of a feature request than a bug
Activity
Jaykul commentedon Mar 16, 2019
I'd even vote for auto unloading modules which were auto loaded ...
krokofant commentedon May 25, 2021
Why was this closed Ilya (@iSazonov) ?
iSazonov commentedon May 25, 2021
PowerShell internal design eliminates the possibility of uploading anything.