Raised This Month: $12 Target: $400
 3% 

Are .NET libraries usable in pawn?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
thEsp
BANNED
Join Date: Aug 2017
Old 01-14-2019 , 09:20   Are .NET libraries usable in pawn?
Reply With Quote #1

Title says it all ^
thEsp is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 01-14-2019 , 10:17   Re: Are .NET libraries usable in pawn?
Reply With Quote #2

Of course not.
__________________
klippy is offline
thEsp
BANNED
Join Date: Aug 2017
Old 05-22-2020 , 17:28   Re: Are .NET libraries usable in pawn?
Reply With Quote #3

Update: It turns out that it's possible to successfully embed .NET into AMXX/MM modules through C++/CLR (let's suppose this is C#). However this is solely Windows-only and there's pretty much nothing you can do to port it over Linux. I was firstly worried about performance speed and crashes before all, but it was unexpectedly fast. Rest is to be explored.
thEsp is offline
+ARUKARI-
AlliedModders Donor
Join Date: Jul 2004
Location: Japan
Old 05-22-2020 , 23:37   Re: Are .NET libraries usable in pawn?
Reply With Quote #4

If you can limit it to .Net Core, it might be available on Linux.
__________________
GitHub
SteamWishlist

六四天安門事件
+ARUKARI- is offline
thEsp
BANNED
Join Date: Aug 2017
Old 05-23-2020 , 08:14   Re: Are .NET libraries usable in pawn?
Reply With Quote #5

Quote:
Originally Posted by +ARUKARI- View Post
If you can limit it to .Net Core, it might be available on Linux.
That's not really possible. This is not something Mono can do.
thEsp is offline
klippy
AlliedModders Donor
Join Date: May 2013
Location: Serbia
Old 05-23-2020 , 09:15   Re: Are .NET libraries usable in pawn?
Reply With Quote #6

Quote:
Originally Posted by thEsp View Post
That's not really possible. This is not something Mono can do.
Mono is not .NET Core, they are two different products.

I've tried embedding .NET Core a long time ago, but it didn't go well. Also it doesn't officially support Linux 32-bit which made me give up on it.

As for Mono: there's an AMXX-like prototype for Mono somewhere on Github, forgot its name. It's also like 7-8 years old now. I've tried playing with it but I haven't found an official way to statically link Mono; they really want you to dynamically link to it.
__________________
klippy is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:44.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode