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

推荐订阅源

Engineering at Meta
Engineering at Meta
T
Threatpost
P
Palo Alto Networks Blog
NISL@THU
NISL@THU
O
OpenAI News
Project Zero
Project Zero
G
GRAHAM CLULEY
P
Privacy International News Feed
A
Arctic Wolf
Microsoft Azure Blog
Microsoft Azure Blog
H
Help Net Security
M
MIT News - Artificial intelligence
T
Threat Research - Cisco Blogs
S
Security @ Cisco Blogs
Google DeepMind News
Google DeepMind News
B
Blog RSS Feed
D
Docker
aimingoo的专栏
aimingoo的专栏
博客园 - 【当耐特】
N
Netflix TechBlog - Medium
云风的 BLOG
云风的 BLOG
雷峰网
雷峰网
W
WeLiveSecurity
P
Proofpoint News Feed
腾讯CDC
Cloudbric
Cloudbric
S
Secure Thoughts
C
Check Point Blog
博客园 - Franky
T
The Exploit Database - CXSecurity.com
T
Troy Hunt's Blog
GbyAI
GbyAI
Security Archives - TechRepublic
Security Archives - TechRepublic
Application and Cybersecurity Blog
Application and Cybersecurity Blog
月光博客
月光博客
C
Cyber Attacks, Cyber Crime and Cyber Security
I
Intezer
TaoSecurity Blog
TaoSecurity Blog
L
Lohrmann on Cybersecurity
V
Visual Studio Blog
F
Fortinet All Blogs
博客园 - 叶小钗
C
CXSECURITY Database RSS Feed - CXSecurity.com
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
Recorded Future
Recorded Future
C
Cisco Blogs
博客园 - 司徒正美
Stack Overflow Blog
Stack Overflow Blog
Y
Y Combinator Blog
Apple Machine Learning Research
Apple Machine Learning Research

博客园 - Davi.Wang

ASP.NET程序中常用代码2 ASP.NET程序中常用代码 .NET调用Com组件事例 有关COM的一些基本知识 在JavaScript中使用面向对象 div+css中id和class的区别运用详解 一道数据库面试题 精妙SQL语句收集 oracle 存储过程的基本语法 动态网站中静态页面的管理与维护 ASP.NET 动态转静态页面的两种方法总结 - 动态页面转换成HTML静态页面方法 网站生成静态页面,及网站数据采集的攻、防原理和策略 ORACLE函数大全 程序员必须掌握的基本正则表达式(一) DataWindow控件用在vs2003中,回车换行问题..求救. 键盘对应代码 比较Hibernate和ADO.net 2.0,问?Hibernate还有什么特性更值得期待? 向东博客javascript教程目录 javascript常用方法
把CS文件编译成dll文件
Davi.Wang · 2007-08-19 · via 博客园 - Davi.Wang

[转载:http://www.cnblogs.com/zhuawang/archive/2007/04/07/704268.html]
把CS文件编译成dll文件

编译方法如下:
一.打开VS.NET的C命令提示
二.进入目录
三.输入如下命令:
csc /t:library /out:F:\MD5.dll  F:\MD5.cs(常用)
如图:

如何做才能够把cs文件编译成dll且自动放到虚拟目录的bin文件夹中呢?

开始-------程序-------Microsoft Visual Studio.NET 2005-------Visual Studio.NET工具,点击其中的“Visual Studio.NET2005命令提示”,就会进入Microsoft Visual Studio.NET 2005命令提示窗口,然后我们用dos命令(cd)进入要编译成dll的cs文件所在的目录,然后输入命令:

csc /out: bin\index.dll /t:library index.cs

回车,就会在bin目录下生成与cs文件同名的dll文件

但是如果这个cs文件引用了bin目录下的另外一个dll文件如comman.dll,则应该这样输入命令:

csc /out: bin\index.dll /r: bin\comman.dll /t:library index.cs

参考:
http://cache.baidu.com/c?word=%B6%E0%B8%F6%3Bcs%3B%CE%C4%BC%FE%2C%B1%E0%D2%EB%3B%D2%BB%B8%F6%3Bdll&url=http%3A//blog%2Ecsdn%2Enet/tongdoudpj/archive/2007/08/15/1745509%2Easpx&p=8b2a960f9d8511a052acdf6857&user=baidu