C#程序集基础问题 请高手进来看看

wangbo1204 2007-12-29 05:59:35
请先耐心看这:
响应文件(它们按照约定采用 *.rsp 文件扩展名)包含您希望供给到 csc.exe 中的所有选项。在创建了该文件以后,您就可以将它的名称指定为 C# 编译器的唯一选项。为了便于说明,下面提供了一个将用于生成 MyCodeLibrary.dll 的响应文件(请注意,您可以使用 # 符号指定注释)。

# MyCodeLibraryArgs.rsp
#
# These are the options used
# to compile MyCodeLibrary.dll

# Output target and name.
/t:library
/out:MyCodeLibrary.dll

# Location of C# files.
/recurse:*.cs

# Give me an XML doc.
/doc:myDoc.xml

# Give me a strong name as well.
/keyfile:C:\MyKeyPair\myKeypair.snk

给定该文件以后,您现在就可以使用 @ 选项指定 MyCodeLibraryArgs.rsp 了:

csc @MyCodeLibraryArgs.rsp

我在Visual Studio 2005 命令提示 上编译它们 但为什么会出错呢
网址:http://www.sgxcn.com/doc/277.htm 中的“使用C#响应文件”
请帮忙解释一下 谢谢
...全文
145 1 打赏 收藏 转发到动态 举报
AI 作业
写回复
用AI写文章
1 条回复
切换为时间正序
请发表友善的回复…
发表回复
lextm 2008-01-01
  • 打赏
  • 举报
回复
土的掉渣的技术了。

建议看看MSBuild技术,简单,配置也方便。

111,098

社区成员

发帖
与我相关
我的任务
社区描述
.NET技术 C#
社区管理员
  • C#
  • AIGC Browser
  • by_封爱
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告

让您成为最强悍的C#开发者

试试用AI创作助手写篇文章吧