今天整理一下 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. ASP.NET MVC- Model- An Introduction to Entity Framework for Absolute Beginners

    Introduction This article introduces Entity Framework to absolute beginners. The article is meant fo ...

  2. 使用Camstudio和KeyCastOW来录屏制作软件Demo视频

    博客搬到了fresky.github.io - Dawei XU,请各位看官挪步.最新的一篇是:使用Camstudio和KeyCastOW来录屏制作软件Demo视频.

  3. cocos2d-x 2.0 拖尾效果分析

    转自:http://game.dapps.net/gamedev/game-engine/7281.html 在Cocos2d-x中,拖尾效果有一个专门的类CCMotionStreak来实现.下面我们 ...

  4. SQL中使用WITH AS提高性能

    本文内容一部分来自:http://wudataoge.blog.163.com/blog/static/80073886200961652022389/ 一.WITH AS的含义     WITH A ...

  5. ERROR 1045: Access denied for user: 'root@localhost' (Using password: YES)(转)

    前两天也偶尔出现这个错误,也没在意,因为我重新修改一下mysql的root密码后又可以用了,但昨天却不行,我把root密码修改以后虽然当时能用, 一旦重新进入就都不能用了,可我的密码明明没有错啊?今天 ...

  6. insert例子

    11.20 使用insert代替下标操作. #include<iostream> #include<map> #include<string> #include&l ...

  7. 安装tensorflow

    官网:http://tensorflow.org/安装步骤:1.sudo apt-get install python-pip python-dev python-virtualenv 3    co ...

  8. IBM发布AppScan Source 8.7:减少iOS企业级应用安全风险

    IBM发布AppScan Source 8.7:减少iOS企业级应用安全风险http://automationqa.com/forum.php?mod=viewthread&tid=2570& ...

  9. [Form builder]:about SYSTEM.MESSAGE_LEVEL

    If you want to suppress error messages then you have to set a system variable :system.message_level. ...

  10. java Map的遍历

    List下的Map的遍历方法 List<String> Keys =new ArrayList<String>(); ){ ;row<SheetData.size() ; ...