您的位置:首页 > 其它

在一个session 里面加load dll问题

2013-03-27 16:21 323 查看
目前发现的在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了? 为什么
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: 
相关文章推荐