[Mono-dev] Creating a dll

Andreas Nahr ClassDevelopment at A-SoftTech.com
Mon Jul 3 11:37:50 EDT 2006


Your command line is wrong. You should specify /target:library 
Using /target:module creates a .NetModule file that cannot be referenced directly and needs to be added to an assembly before you can use it.

Greets Andreas
  The command I use when creating the failing dll is:
  "gmcs.bat /nologo /debug- /optimize- /out:D:\etc\java\aten\NETC-framework\build\dist\dotnet\NETC-framework.dll
  /target:module /nostdlib- /warn:3 /doc:D:\etc\java\aten\NETC-framework\build\dist\dotnet\NETC-framework_doc.xml 
  /fullpaths /incremental-
  /reference:D:\libraries\assemblies\external\Rhino.Mocks.dll;D:\libraries\assemblies\external\Hessiancsharp.dll;d:\libraries\assemblies\external\nunit.framework.dll
  .\*.cs .\exception\*.cs .\to\*.cs .\to\generic\*.cs" 

  Brgds Staffan

-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060703/9dfbf9fc/attachment.html 


More information about the Mono-devel-list mailing list