[CLR VIA C#] chapter2 building,packaging,deploying, and administering
今天整理一下 assembly, 总感觉第一章 到 第三章 没怎么仔细看, 导致后面作者说前面说过的, 我就心里不舒服, 前面3章很干很涩, 好好啃啃, 先作一些简单笔记, 最后再来 整体整理, 反正还要做PPT, 哎 自作孽啊~
多文件的Assembly
放在Internet 上面下载, Active Accessibility, code base 定义 URL,
多文件assembly 优点.
可以按类型分类文件,按需增量下载文件,分批打包部署.
可以向程序集中添加资源或者数据文件 AL.exe.
各个类型文件可以用不同语言来写,ILDasm.exe 获得IL code,ILAsm.exe把所有程序打包.
PE 文件,清单
/t:exe /t:winexe /t:library
/t:module 不含清单,生成.netmodule后缀文件
/addmodule
eg:
rut.cs + fut.cs
csc /t:module rut.cs -> rut.netmodule
csc /out:TypeMe.dll /t:library /addmodule:rut.netmodule fut.cs
rut.netmodule 在 ExportedTypesDef 中 (exported 出口)
token请查corhdr.h
添加assembly IDE VS
assembly 出现在.net tab, 修改 HLM\software\microsoft\.netframework\assemblyfolders\mylibname 或者 HCU\
为程序集添加资源文件
AL.EXE
/embed[resource] /link[resource]
csc.exe
/resource /linkresource
/win32res /win32icon
版本信息
System.Diagnostics.FileVersionInfo.GetVersionInfo (Diagnostics [ˌdaɪəɡˈnɑstɪk] 诊断)
AL.exe /fileversion /productversion
major minor build revision (revision [rɪˈvɪʒ(ə)n] 修订)
AssemblyFileVersion win32
AssemblyInformationalVersion win32
AssemblyVersion AssemblyDef
question:能否相同呢???比如上次的 fileversion 和这次的fileversion, informationalverison是干什么用的呢?
语言文化
culture neutral (neutral [ˈnutrəl] 中立)
satellite assembly 附属程序集
AL.exe /c[ulture]:text
System.Resources.ResourceManager
question:怎么执行本地化呢???
简单的部署
注册表
.cab msi clickonce
简单管理控制(配置)
配置文件 xml
<probing privatePath=”” /> string semicolon delimited 路径, 只能相对路径, 不能绝对路径
Machine config %SystemRoot%\Microsoft.Net\Framework\Version\CONFIG
第二章 Summary
csc.exe /out: /t: /r
response files @###.rsp csc.rsp(framework\64 folder)
metadata
combine module:
advantage/why changes in metadata /t:module->netmodule /addmodule IDE
AL.exe csc.exe
version major minor build revision
culture
deploy/control
把第二章发出去吧, 这样比较有成就感, 终于看完一章, 再也不用一遍一遍看, 还不知道说的是什么了. happy~
[CLR VIA C#] chapter2 building,packaging,deploying, and administering的更多相关文章
- CLR via C# 3rd - 02 - Building, Packaging, Deploying, and Administering Applications and Types
1. C# Compiler - CSC.exe csc.exe /out:Program.exe /t:exe /r:MSCorLib.dll Program.cs ...
- Building,Packaging,Deploying,and Administering Applications and Types
在我们进入章节之前,我们讨论一下生成.打包和部署你的应用程序和应用程序类型必须的步骤.在这章里,我关注的是如何为你的应用程序的用途生成程序集.在第三章,"共享程序集合和强命名程序集" ...
- Networked Graphics: Building Networked Games and Virtual Environments (Anthony Steed / Manuel Fradinho Oliveira 著)
PART I GROUNDWORK CHAPTER 1 Introduction CHAPTER 2 One on One (101) CHAPTER 3 Overview of the Intern ...
- Awesome Python
Awesome Python A curated list of awesome Python frameworks, libraries, software and resources. Insp ...
- Python开源框架、库、软件和资源大集合
A curated list of awesome Python frameworks, libraries, software and resources. Inspired by awesome- ...
- Python 库汇总英文版
Awesome Python A curated list of awesome Python frameworks, libraries, software and resources. Insp ...
- CNCF CloudNative Landscape
cncf landscape CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database ...
- CNCF LandScape Summary
CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database Vitess:itess i ...
- 【机器学习Machine Learning】资料大全
昨天总结了深度学习的资料,今天把机器学习的资料也总结一下(友情提示:有些网站需要"科学上网"^_^) 推荐几本好书: 1.Pattern Recognition and Machi ...
随机推荐
- linuxmint获取root
1.进入系统à点击桌面左下角的菜单à点击系统设置 2. 在系统设置里面找到登陆窗口并进去 3.打入自己设置的开机登陆密码 4. 选择选项,并把运行root登陆的勾打上 5.重启生效
- 使用Ready2Search来定制Firefox和Chrome的搜索框
博客搬到了fresky.github.io - Dawei XU,请各位看官挪步.最新的一篇是:使用Ready2Search来定制Firefox和Chrome的搜索框.
- Mac下eclipse安装SVN插件
eclipse中最常使用的SVN插件是subclipse,先到subclipse官网:http://subclipse.tigris.org下载该插件. 如上图,点击“Download and I ...
- cocos2d-x编程的一些小技巧
转自:http://blog.sina.com.cn/s/blog_61d2d3f50100zgz8.html 一. CC_ASSERT 或 CCAssert宏 Assert - 断言 使用断言可 ...
- 写一些有关android的东西吧,那时候玩android时候的一些笔记
写一些有关android的东西吧,那时候玩android时候的一些笔记
- Javascript模板引擎handlebars使用实例及技巧
转:http://rfyiamcool.blog.51cto.com/1030776/1278620 我们在开发的时候针对DOM操作,用简单的JS应用来说不成问题,但如果你对视图的每次更新都需要对我文 ...
- sendStickyBroadcast和sendStickyOrderedBroadcast
sendStickyBroadcast和sendStickyOrderedBroadcast发出的广播会一直滞留(等待),以便有人注册这则广播消息后能尽快的收到这条广播.其他功能与sendBroadc ...
- 前端JS开发框架-DHTMLX--dhtmlXTree
介绍 dhtmlxTree是一个功能丰富的JavaScript树菜单 它允许您快速添加一个好看的,基于ajax的web页面的分层树. treeview支持在线节点编辑.先进的拖放,三态复选框等等.由 ...
- Linux 内核进程管理之进程ID 。图解
http://www.cnblogs.com/hazir/tag/kernel/ Linux 内核进程管理之进程ID Linux 内核使用 task_struct 数据结构来关联所有与进程有关的数 ...
- Cookie中的三个容器request,session,application的设置和获取
public class SaveServlet extends HttpServlet { public void doGet(HttpServletRequest request, HttpSer ...