I'm working on debugging a Powershell project. I'm using Import-Module
to load the PS module from my C# dll and everything works fine. Calling Remove-Module
does not fully unload the module though as the DLL is still locked and can not be deleted.
Is there a way to get PSH to fully unload the module and release the DLL so that I can copy over it and reload it again using Import-Module
without restarting the PSH console?
Update
So if you load a module into a seperate AppDomain does it still work like a normal module? Can anyone provide an example?