[Mono-dev] Creating DLL with ant task csc using gmcs.exe

Staffan Ström s.staffan at gmail.com
Fri Jun 30 08:14:34 EDT 2006


Hi all!
I'm trying to get ant to generate a dll using the task <csc>. I's using
attribute "executable" to specify gmcs.exe.
The source files compiles ok but after that I get the error message:


[*csc*] error CS8088: Your .NET Runtime does not support `/target:module'.
Please use the latest Mono runtime instead.
I have .NET 2.0 installed. Version of mono is 1.1.13.8 (downloaded today).
Does anyone have an idea what the problem is? It works fine from the mono
command prompt...

Command executed (both in ant and at mono command prompt:


gmcs /nologo /debug- /optimize-
/out:D:\etc\java\aten\Etc-Aten-subsystems-reda\build\dist\dotnet\etcreda.dll
/target:module /nostdlib- /warn:3
/doc:D:\etc\java\aten\Etc-Aten-subsystems-reda\build\dist\dotnet\etcreda_doc.xml
/fullpaths /incremental-
/reference:D:\etc\dotNET\lib\etcClientFramework.dll;D:\etc\dotNET\lib\etcFramework.dll
... and a lot of .cs files...

Brgds Staffan
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-devel-list/attachments/20060630/9ae28aee/attachment.html 


More information about the Mono-devel-list mailing list