keith
keith

Reputation: 5352

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

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

Upvotes: 4

Views: 1286

Answers (2)

Waneck
Waneck

Reputation: 2470

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]

Upvotes: 6

StingyJack
StingyJack

Reputation: 19489

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

Upvotes: 1

Related Questions