- 浏览: 518422 次
- 性别:
- 来自: 深圳
文章分类
- 全部博客 (299)
- Oracle(pl/sql_Erp_Pro*C) (69)
- 设计模式 (4)
- spring (23)
- ext (17)
- apache开源项目应用 (4)
- jquery (16)
- 生活琐事 (8)
- 下载资源 (23)
- mysql (2)
- Eclipse使用积累 (5)
- 报表类(报表/图表) (13)
- php (4)
- Web多彩文本框 (3)
- json (4)
- jqgrid (2)
- ant (2)
- java算法积累 (8)
- EL表达式/JSTL (4)
- poi (3)
- gwt (2)
- 爬网第一步 (2)
- javascript (17)
- Javaweb (8)
- tomcat (1)
- flex (1)
- Java&DB (3)
- J2SE (7)
- linux (3)
- 数据结构 (1)
- dot net (5)
- struts (1)
- ibatis (1)
- log4j (1)
- 项目管理 (1)
- Java native interface(jni,jacob......) (5)
- applet (1)
- VB.net/C#.net/JNI (20)
- css (1)
- Sqlite (1)
- servlet (1)
- REST (1)
最新评论
-
wenhurena:
能不能给一下解压密码roki.work.2017@gmail. ...
Ebs解体新書と学習資料1 -
liutao1600:
楼主写的太好了,每天学习~~
Spring_MVC(6)测试 -
liutao1600:
太好了,每天学习你的文章~~~
Spring_MVC(3)表单页面处理 -
liutao1600:
学习了,太好了
Spring_MVC(2)控制层处理 -
liutao1600:
学习了~~~
Spring_MVC(1)构建简单web应用
前段时间自己整理的一个有关strong-named assemblies的相关知识点。
What it the strong-named assembly?
A strong name consists of the assembly‘s identity:
Simple text name
Version number
Culture information
A public key and a digital signature
Benefits:
Strong names guarantee name uniqueness by relying on unique key pairs
Strong names protect the version lineage of an assembly.
Strong names provide a strong integrity check.
Public/Private key pair: How to sign an assembly with a strong name:
Create a public/private key pair
>sn -k myKeyPair.snk
Get the public key
>sn -p myKeyPair.snk myPublicKey.snk
View the public key
>sn -tp myPublicKey.snk
Using the Assembly Linker (Al.exe)
>al /out:MyAssembly.dll MyModule.netmodule /keyfile:myKeyPair.snk
Using compiler options such /keyfile or /delaysign in C#
>csc /Keyfile:myKeyPair.snk test.cs
Using assembly attributes to insert the strong name information in code.
[assembly: AssemblyKeyFile(“myKeyPair.snk")]
Delay Signing an Assembly:
An organization can have a closely guarded key pair that developers do not have access to on a daily basis. The public key is often available, but access to the private key is restricted to only a few individuals.
How to delay signing an assembly:
Obtain the public key portion of the key pair.
Annotate the source code for the assembly with two custom attributes
[assembly:AssemblyKeyFileAttribute("myPublicKey.snk")]
[assembly:AssemblyDelaySignAttribute(true)]
Compile the assembly
Turn off the verification of that signature.
>sn –Vr myAssembly.dll
Using the actual strong name sign the assembly
>sn -R myAssembly.dll myKeyPair.snk
Turn verification back on by executing the following command line:
>SN -Vu myAssembly.dll
Publish and GAC:
If an assembly is to be accessed by multiple applications, the assembly must be placed into a well-known directory, which is called the global assembly cache (GAC).
the GAC identifies assemblies using name, version, culture, public key, and CPU architecture.
You can't ever place a weakly named assembly into the GAC.
Install an assembly to GAC
>gacutil -i hello.dll
Remove an assembly from GAC
>gacutil –u hello.dll
发表评论
-
程序集与托管模块
2010-10-26 16:22 1240本文是为了学习程序集而整理的网上资料,主要包括两个部分,概念和 ... -
.NET程序集
2010-10-26 15:03 2231【主要内容】@将源代码 ... -
CLR笔记(二)
2010-10-26 13:53 9826.类型和成员基础 1.Class的可见性有publi ... -
CLR笔记(一)
2010-10-26 13:22 18041.CLR的执行模型 ... -
Java调用C#
2010-10-25 22:49 1838Java调用C# 下载: http://www.co ... -
Managed Extensions for C++ Reference
2010-10-25 18:10 1389Managed Extensions for C++ Refe ... -
注入托管代码
2010-10-25 17:18 1720前言:本文的重点不在 ... -
jni调用dll及dll已用其它dll的资料
2010-10-25 16:00 899http://blog.csdn.net/KONGKONGWJ ... -
C# method calls within a Java program
2010-10-23 16:11 1066.net产生的比java晚,其类库的封装在某些方面也比ja ... -
走近COM Interop
2010-10-23 15:40 1637走近COM Interop—— RCW ... -
get chartobjects from VB.net
2010-10-18 10:34 1341Excel.Sheets sheets = oWB.Works ... -
VB.NET调用DLL实现方法解析
2010-10-13 10:43 3510VB.NET开发平台 ... -
VB.net 的Me My MyBase MyClass
2010-10-11 23:46 2014第一次接触 Visual Basic 中的 Me、My、M ... -
使用.Net访问Office编程接口(PIA和IA的区别)
2010-10-11 10:25 3501在这篇文章里面,我将向大家介绍如何在.Net中访问Offi ... -
Exposing .net Components to Com
2010-10-11 09:47 813http://www.codeproject.com/KB/C ... -
.net Com组件注册
2010-10-11 09:30 1962本文将详细为大家介绍一个java调用.net DLL的方法,以 ... -
vb.net 封装组件成com的方法
2010-10-10 17:16 1538前几天一直在研究如何将.net的组件封装成com供非托管代码调 ... -
Writing an Activex control in VB.net
2010-10-09 22:33 1407The problem with that example i ... -
VB set Excel color
2010-10-08 17:30 938Sub Macro3()'' Macro3 Macro' ' ...
相关推荐
标题 "selenium-dotnet-strongnamed-2.44.0.zip" 暗示这是一个针对.NET框架的Selenium库的特定版本,具有强命名(Strong-Named)的特性。Selenium是一个广泛使用的自动化测试工具,它允许开发人员编写脚本来模拟用户...
- 使用强命名的DLL(Strong-Named DLLs),以防止版本冲突和假冒。 - 避免在全局目录下放置DLL,减少系统级的影响。 综上所述,"windowsmain-dll"可能是一个关键的系统或应用组件,涉及到Windows平台下的程序开发...
3. 强命名问题:如果程序集是强命名的(strong-named),那么它的哈希值必须与引用匹配。 4. 多目标框架问题:开发环境和运行环境的.NET Framework版本不一致。 为了解决这个问题,开发者通常需要执行以下步骤: 1...
- **增强的.NET支持**:包括Strong-named assemblies,支持更多的.NET类库,提升了.NET环境下的兼容性和性能。 - **创新DataWindow**:DataWindow的改进允许开发人员创建更丰富、更具交互性的用户界面。 - **其他...
.NET Framework提供了强命名(Strong-Named)和合并(Assembly Binding Redirection)等机制来解决这些问题。 4. 错误处理:当DLL调用失败时,需要捕获并处理异常。了解`Platform Invoke (P/Invoke)`和`Interop ...
- **Strong-Named Assemblies**:强命名程序集,通过签名确保程序集的唯一性和安全性,避免版本冲突。 - **Interface vs Class**:接口定义了一组方法和属性,不包含具体的实现;类则可以包含具体的方法实现和数据...
TFrame + TLabel + TRadioGroup = bad5.00 of 5 Closed9477 Delphi .NET assembly references with strong names5.00 of 5 Closed9254 Incorrect reference public key token included into Delphi8 strong-named ...
4. 强命名(Strong-Named)隔离:对于强命名的程序集,数据将被隔离在各自的命名空间内。 在C#中,使用`System.IO.IsolatedStorage`命名空间中的类来操作隔离存储。主要涉及以下核心类: - `IsolatedStorageFile`...
全局程序集缓存是.NET Framework中的一个特殊存储区域,它用于存放可以被多个应用程序域(AppDomain)共享的、强命名(Strong-Named)的程序集。GAC中的程序集具有唯一的标识,包括版本号、公钥和 Culture 信息,...
为了避免这种情况,应使用强命名的DLL(Strong-Named DLLs)和适当的版本控制策略。 9. **程序集**:在.NET Framework中,程序集(Assembly)是模块化代码的基本单元,它包含元数据和IL代码。一个程序集可以包含一...
ICSharpCode.SharpZipLib 读取excel
Chapter 10 has been re-named. It was felt that there is too much confusion in the term Data Fusion to retain it as the title for material that is fundamentally concerned with thematic mapping from ...
Server features to simple applications for hobbyists, or let experienced users develop scaling and strong service-based projects for their customers, with the advantages of native code and easy-to-...
14-2使用AttributeGlobalAttribute14-3自定义Attribute类14-3-1Attribute适用的元素14-3-2设计Attribute类14-3-3使用Attribute14-3-4Attribute编译的过程14-3-5使用positional参数与named参数14-3-6取得Attribute的...
14-2使用AttributeGlobalAttribute14-3自定义Attribute类14-3-1Attribute适用的元素14-3-2设计Attribute类14-3-3使用Attribute14-3-4Attribute编译的过程14-3-5使用positional参数与named参数14-3-6取得Attribute的...
If you compile Strong Named Assemblies then imported ActiveX Controls must also be Strong Named. The Utilities folder contains a Strong Name compiled version of: \Utilities\VS.NET\Strong Named DLLs ...
If you compile Strong Named Assemblies then imported ActiveX Controls must also be Strong Named. The Utilities folder contains a Strong Name compiled version of: \Utilities\VS.NET\Strong Named DLLs ...
Strong Named DLL assemblies of TeeChart and TeeChart with Windows wrapper for use with Visual Studio.NET projects that require to be Strong Named. Changes to note: 1. VC++ developers should ...
- “To build a strong connection with our family members...” 考查学生能否围绕主题展开论述,提出合理建议,并保持语言流畅。 通过以上解析,我们可以看出高三期末英语考试主要考查学生的语言基础、阅读理解...
18. Because she is not strong enough for walking up mountains. (选择题,D for) - 知识点:"enough for doing sth."表示“足够做某事”。 以上是每道题目所涉及的英语语言点,这些知识点涵盖了词汇、语法、...