目前发现的在powershell 2.0 里,一个session 可以加同一个assembly 多次
在powershell 3.0 里,一个session 里面可以加载同一个assembly 一次,在重复加载就说这个assembly 文件找不到了
在网上找了下原因说:.NET assemblies can’t be unloaded from a session (it’s a .NET thing, not a PowerShell thing) therefore DLLs can’t be unloaded from a session. This means that you can’t update a DLLs once it’s been loaded. We can’t even update the assembly on disk because the file is locked when the assembly is loaded.
哎。。。。2010年powershell 就出3.0了? 为什么