惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

让小产品的独立变现更简单 - ezindie.com
让小产品的独立变现更简单 - ezindie.com
爱范儿
爱范儿
H
Help Net Security
V
Visual Studio Blog
J
Java Code Geeks
Stack Overflow Blog
Stack Overflow Blog
Microsoft Security Blog
Microsoft Security Blog
Apple Machine Learning Research
Apple Machine Learning Research
MyScale Blog
MyScale Blog
The Cloudflare Blog
Martin Fowler
Martin Fowler
D
Docker
腾讯CDC
F
Fortinet All Blogs
雷峰网
雷峰网
GbyAI
GbyAI
G
Google Developers Blog
Cyber Security Advisories - MS-ISAC
Cyber Security Advisories - MS-ISAC
Recent Announcements
Recent Announcements
OSCHINA 社区最新新闻
OSCHINA 社区最新新闻
Blog — PlanetScale
Blog — PlanetScale
Engineering at Meta
Engineering at Meta
博客园 - 聂微东
博客园 - 叶小钗

博客园 - 左佩玉

通过了 70-316 考试 .NET SDK 工具 线程 进程 程序配置 全局化和本地化 实现帮助 可访问性设计 访问和调用外部组件 实现打印 自定义控件 使用 GDI+ 在ADO.net 中使用xml 绑定、查看和筛选数据 ADO.net 处理和抛出异常 使用Debug和Trace 测试和调试 继承 System.Collections.CollectionBase 创建一个强类型集合类
程序集
左佩玉 · 2005-08-26 · via 博客园 - 左佩玉

创建类库程序集
Class Library  
Windows Control Library

创建资源文件
\FrameworkSDK\Samples\Tutorials\resourcesandlocalization\reseditor

使用 Add Existing Item

创建资源程序集
Empty Project
Add Existing Item
设置 Project Properth Page
Output Type  = Class Library

创建附属程序集
 
检索资源
ResorceManager myManager = new ResourceManager("myNamespace.myResources",this.GetType().Assembly);
正访问的资源在不同的程序集,需加载该程序集
System.Reflection.Assembly myResources = System.Reflection.Assembly.Load("ResourceAssembly");
ResourceManager myManager = new ResourceManager("ResourceAssembly.Resources",myResources);

检索图像
System.Drawing.Image myImage = (System.Drawing.Image)myManager.GetObject("ImageResource");

共享程序集  安装到全局程序集缓存

强命名 公/私密钥对
sn -k myKey.snk
指定密钥文件
[assembly:AssemblyKeyFile("..\\..\\myKey.snk")]

安装到全局程序集缓存
gacutil /i myAssembly.dll