Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
是否可以使用 haxe 编译器将 haxe 代码直接编译为 .NET DLL 而不是 EXE?
您还可以编译您的代码并传递-D dll给 haxe 编译器:
-D dll
haxe -cp src -D dll -cs bin/cs [class-to-compile]
如果需要 DLL,只需重命名文件即可。.NET 中两者之间的差异很小。