question

MatiasChaied-9061 avatar image
0 Votes"
MatiasChaied-9061 asked ·

Reference a .NET library on Universal Windows App

Hi everyone,

I'm new on the universal windows applications, and i have to do a UW app that need to have a interop with Java. So in .NET i make the interop by adding the library of IKVM, but this library is written in .NET framework.

How im supposed to add this reference to the dll of IKVM on the Universal Windows app?

Thanks!

uwp
· 3
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.

IKVM is abandoned if I remember correctly. You should use Sharpen, https://docs.microsoft.com/en-us/xamarin/android/platform/java-integration/porting-java-to-csharp

0 Votes 0 · ·

Hi, does these methods work for you? Have you solved your issue?

0 Votes 0 · ·

Hi, is there any update?

0 Votes 0 · ·

1 Answer

FayWang-MSFT avatar image
0 Votes"
FayWang-MSFT answered ·

Hello,​

​Welcome to our Microsoft Q&A platform!

In UWP, you can not directly reference the .NET framework library, you can try to create a .NET Standard library project that can reference your dll and then reference this .NET Standard project to your UWP app.

In addition, here is a IKVM Nuget package, you could try to download it and directly use it in UWP app to see if it could interact with java.


· Share
10 |1000 characters needed characters left characters exceeded

Up to 10 attachments (including images) can be used with a maximum of 3.0 MiB each and 30.0 MiB total.