简体   繁体   English

使用许多dll创建一个netmodule库

[英]Create a netmodule library using many dlls

I have a problem generating a netmodule archive, I have these files: 我在生成netmodule归档文件时遇到问题,我有以下文件:

  • class1.cs class1.cs
  • library1.dll 库1.dll
  • library2.dll 库2.dll
  • library3.dll 库3.dll

class1.cs uses library1.dll and library2.dll uses library2.dll and library3.dll , I try using this command: class1.cs使用library1.dlllibrary2.dll使用library2.dlllibrary3.dll ,我尝试使用下面的命令:

C:\Microsoft Visual Studio 10.0\VC>csc /target:module "D:\Microsoft Visual Studio 10.0\VC\Class1.cs" /reference:"C:\Microsoft Visual Studio 10.0\VC\library1.dll";"D:\Microsoft Visual Studio 10.0\VC\library2.dll";"C:\Microsoft Visual Studio 10.0\VC\library3.dll"

But, only obtain a file containing class1 and library1, i need to compile 4 files in one netmodule, but i try many commands and nothing work. 但是,仅获取包含class1和library1的文件,我需要在一个netmodule中编译4个文件,但是我尝试了许多命令,但没有任何效果。

pd: i use Visual Studio 2010, thanks for any help pd:我使用Visual Studio 2010,感谢您的帮助

You must use -reference (or -r ) parameter for each file separately. 您必须分别为每个文件使用-reference (或-r )参数。 For a large number of parameters, it is reasonable to use a response file . 对于大量参数,使用响应文件是合理的。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM