冬眠
“如果你觉得自己在为傻瓜设计产品,那么很可能不仅无法设计出优秀的产品,而且连傻瓜也不喜欢你的设计。”--Paul Graham

导航

 

1、查看Windows文件首部信息

  dumpbin/headers 项目名称。

  例如:dumpbin/headers test.exe

2、查看CLR首部信息

  dumpbin/clrheader 项目名称

  例如:dumpbin/clrheader test.exe

3、生成程序集模块

  csc.exe /t:module 文件名称

  例如:csc.exe /t:module test1.cs,生成test1.netmodule文件

4、生成程序集

  csc.exe /t:输出类型 /out:输出文件名 输入文件名

  例如:csc.exe /t:library /out:test.dll test1.cs

5、生成双文件程序集

  csc.exe /t:输出类型 /out:输出文件名 模块2的源码文件名 /addmodule:模块1的模块文件名

  例如:csc.exe /t:library /out:test.dll test2.cs /addmodule:test1.netmodule

6、生成多文件程序集

  al 模块1 模块2 模块3 /out:输出文件名 /t:输出类型

  例如:al test1.netmodule test2.netmodule test3.netmodule /out:test.dll /t:library

7、反汇编程序集

  ildasm 程序集名称

  例如:ildasm test.dll

8、生成共享程序集的强命名文件

  sn -k 文件名.snk

  例如:sn -k mysnk.snk

9、安装共享程序集

  gacutil.exe -i 程序集名称

  例如:gacutil.exe -i mydll.dll

10、查看共享程序集是否存在

  gacutil.exe -l 程序集名称

  例如:gacutil.exe -l mydll

11、卸载共享程序集

  gacutil.exe -u 程序集名称

  例如:gacutil.exe -u mydll

posted on 2013-09-23 09:58  无尽的冬眠  阅读(530)  评论(0编辑  收藏  举报