今天整理一下 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的更多相关文章

  1. 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       ...

  2. Building,Packaging,Deploying,and Administering Applications and Types

    在我们进入章节之前,我们讨论一下生成.打包和部署你的应用程序和应用程序类型必须的步骤.在这章里,我关注的是如何为你的应用程序的用途生成程序集.在第三章,"共享程序集合和强命名程序集" ...

  3. 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 ...

  4. Awesome Python

    Awesome Python  A curated list of awesome Python frameworks, libraries, software and resources. Insp ...

  5. Python开源框架、库、软件和资源大集合

    A curated list of awesome Python frameworks, libraries, software and resources. Inspired by awesome- ...

  6. Python 库汇总英文版

    Awesome Python  A curated list of awesome Python frameworks, libraries, software and resources. Insp ...

  7. CNCF CloudNative Landscape

    cncf landscape CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database ...

  8. CNCF LandScape Summary

    CNCF Cloud Native Interactive Landscape 1. App Definition and Development 1. Database Vitess:itess i ...

  9. 【机器学习Machine Learning】资料大全

    昨天总结了深度学习的资料,今天把机器学习的资料也总结一下(友情提示:有些网站需要"科学上网"^_^) 推荐几本好书: 1.Pattern Recognition and Machi ...

随机推荐

  1. openCV 2.4.13 iOS background_segm.hpp 'list' file not found

    最近下载了最新版的OpenCV的Framework. 导入到项目里边,编译.然后就出现了问题 /opencv2.framework/Headers/video/background_segm.hpp: ...

  2. 多点触控之MotionEvent.ACTION_MASK作用

    ACTION_MASK在Android中是应用于多点触摸操作,字面上的意思大概是动作掩码的意思吧. 在onTouchEvent(MotionEvent event)中,使用switch (event. ...

  3. Android 颜色渲染(七) RadialGradient 环形渲染实现水波纹效果

    利用环形渲染我们可以做到什么? 其实很多都是非常常见的,比如上一篇实现的帮帮糖效果, 彩色的热气球,比如这里要讲到的水波纹效果,或者也可以理解为扩散色渲染效果 首先看一下效果图: 轻触屏幕,即可看到对 ...

  4. android studio常用快捷键(不断补充)

    1.查找类  ctrl + n 2.查找全局文件 双击shift 3.返回上一次编辑的地方 ctrl + shift + backspace 4.代码格式化ctrl + alt + L 5.查看类的结 ...

  5. 在hadoop上进行编写mapreduce程序,统计关键词在text出现次数

    mapreduce的处理过程分为2个阶段,map阶段,和reduce阶段.在要求统计指定文件里的全部单词的出现次数时. map阶段把每一个关键词写到一行上以逗号进行分隔.并初始化数量为1(同样的单词h ...

  6. hdu1753java(大数相加)---BigDecimal类

    大明A+B Time Limit: 3000/1000 MS (Java/Others) Memory Limit: 32768/32768 K (Java/Others)Total Submissi ...

  7. Leetcode Python Solution(continue update)

    leetcode python solution 1. two sum (easy) Given an array of integers, return indices of the two num ...

  8. Java 计算文件大小

    long available = (long)getAttachmentContent(att.getId()).available();   public static String bytesTr ...

  9. 使用POI操作Excel使用小总结

    1. Workbook维护一个调色板,可以自定义设置56种颜色,下标从8到63. 用到颜色的地方,可以输入下标获取颜色,如CellStyle的setFillForegroundColor(); 2.C ...

  10. 创建自定义 HTTP 模块

    本主题中描述的自定义 HTTP 模块阐释了 HTTP 模块的基本功能.在响应下面两个事件时调用该模块:BeginRequest 事件和 EndRequest 事件.这使该模块可以在处理页请求之前和之后 ...