Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Haxe - compile haxe code to a .NET DLL rather than an EXE

Tags:

c#

haxe

Is is possible to compile haxe code directly to a .NET DLL rather than an EXE using the haxe compiler?

like image 745
keith Avatar asked Mar 23 '23 09:03

keith


2 Answers

You can also compile your code and pass in -D dll to the haxe compiler:

haxe -cp src -D dll -cs bin/cs [class-to-compile]
like image 163
Waneck Avatar answered Mar 31 '23 18:03

Waneck


Just rename the file if you want a DLL. The difference between the two in .NET is minimal.

like image 28
StingyJack Avatar answered Mar 31 '23 16:03

StingyJack