在一个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了? 为什么
在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了? 为什么
相关文章推荐
- 解决一个项目里面加载两个同名不同版本的DLL的问题
- aspx里构造函数里无法使用session,需要重写一个方法放在load里面就能正常使用session了
- 解决Could not load file or assembly CefSharp.Core.dll的问题
- DB2问题诊断与解决: 一个由于历史文件过大,导致LOAD慢的问题
- Hibernate中的session.load(class,id)参数问题
- Proteus 仿真8086时 汇编程序里面有DATA SEGMENT时 CS 在load时会偏移的问题
- JNA的一个小问题-调用dll处理字符串,在java中不能反映出字符串变化
- Failed to load session “ubuntu" 问题解决总结
- 说到界面设计,想起VSS里面的一个问题
- 0324的学习笔记----里面最重要的就是一个tom猫的动画,和涉及到的内存问题(创建imageview的两种方式,imagenamed就会形成缓存,占用很多内
- session 同一个网站获取不到的问题
- 解决ViewPager里面包含一个HorizontalScrollVIew触摸冲突问题
- 添加删除程序里面有一个QQBrowserCRTDLL
- windows pe权威指南 里面的一个小问题
- 一个面试题(jquery里面的load方法如何用)
- Delphi 调用 C# Dll 时一个编译问题 mscorlib_TLB.h Ambiguity between 'String' and 'System::String'
- 在b2core框架和simple_html_dom.php文件里面都有一个load()函数
- 关于DLL搜索路径顺序的一个问题
- java工程项目里,在一个包里面,不能出现同名的类名,这问题是刚接触java才会遇到的,特别是新手一般都没有建立包,而是使用默认的,易出现同名的类名,导致eclipse提示错误
- h5中 <!DOCTYPE html>标签问题,div里面如果装有一个img下边会有2px间隙