Jiwa and .net Core

Discussions relating to plugin development, and the Jiwa API.

Jiwa and .net Core

Postby SBarnes » Tue Jun 02, 2020 6:11 pm

Is there any way to use the Jiwa DLLs in a .net core application, provided it runs under Windows as I don't believe the Jiwa DLLs are seen as conforming to any of the .net "Standards"?

Whilst I've been able to compile a core program with them as soon as you call logon, you get exceptions.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa and .net Core

Postby pricerc » Tue Jun 02, 2020 8:04 pm

SBarnes wrote:Is there any way to use the Jiwa DLLs in a .net core application, provided it runs under Windows as I don't believe the Jiwa DLLs are seen as conforming to any of the .net "Standards"?

Whilst I've been able to compile a core program with them as soon as you call logon, you get exceptions.


I believe the short answer will be 'not easily, if at all'. .NET Framework and .NET Core are not nearly as compatible as their naming would suggest.

Besides Jiwa itself, it has many third party dependencies, and they would all need to be 'compatible' to have success.

You'd probably have a better experience having your .NET Core applications communicate with the JIWA REST API running on a JIWA Server. That could arguably be considered a better architecture, too.
/Ryan

ERP Consultant,
Advanced ERP Limited, NZ
https://aerp.co.nz
User avatar
pricerc
Senpai
Senpai
 
Posts: 504
Joined: Mon Aug 10, 2009 12:22 pm
Location: Auckland, NZ
Topics Solved: 20

Re: Jiwa and .net Core

Postby SBarnes » Tue Jun 02, 2020 8:31 pm

Hi Ryan,

Thanks for the feedback, you are largely confirming what I had suspected is the case given my knowledge of core, I had also thought of the Rest API solution also given ServiceStack's support .net core but had hoped to avoid the double handling if I could.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175

Re: Jiwa and .net Core

Postby Mike.Sheen » Wed Jun 03, 2020 11:50 am

Pretty much what Ryan said.

It would be a bit of an effort to separate out the bits which could target the .NET Standard 2.1 and thus be used by both .NET Core (or .NET 5 as the next version of .NET Core will be known) or the classic .NET Framework.

Mainly we'd "just" need to move dependencies on things like Crystal Reports and all Windows Forms related stuff to be it's own set of .NET Framework assemblies, and the core business logic could then target .NET Standard and those would be able to be referenced by both .NET Framework apps and .NET Core apps.
Mike Sheen
Chief Software Engineer
Jiwa Financials

If I do answer your question to your satisfaction, please mark it as the post solving the topic so others with the same issue can readily identify the solution
User avatar
Mike.Sheen
Overflow Error
Overflow Error
 
Posts: 2444
Joined: Tue Feb 12, 2008 11:12 am
Location: Perth, Republic of Western Australia
Topics Solved: 756

Re: Jiwa and .net Core

Postby SBarnes » Wed Jun 03, 2020 12:01 pm

It would mainly be the Business Logic DLLs that would matter as obviously the user interface relies on third party controls etc, the reason for looking at Core is obviously that's going to be the way forward with recent decisions from Microsoft and Core does support a number of features in terms of dependency injection and lose coupling etc that make it an attractive choice going forward.

I would imagine though supporting .Net Standard 2.1 would be a pretty big undertaking given the scope of business objects in the system without a huge ROI.
Regards
Stuart Barnes
SBarnes
Shihan
Shihan
 
Posts: 1619
Joined: Fri Aug 15, 2008 3:27 pm
Topics Solved: 175


Return to Technical and or Programming

Who is online

Users browsing this forum: No registered users and 6 guests

cron