Support for .NET Core?

Supporting Visual Studio on Windows
hossrod
Fresh meat
Posts: 1
Joined: Tue Feb 14, 2017 9:02 pm
Contact:

Support for .NET Core?

Postby hossrod » Tue Feb 14, 2017 9:07 pm

Is there currently, or being planned, support for .NET Core? Most my business has moved to .NET Core. Hoping there is support for Phidgets with .NET Core.

Rbguy
Fresh meat
Posts: 3
Joined: Fri Apr 06, 2018 11:02 pm
Contact:

Re: Support for .NET Core?

Postby Rbguy » Fri Apr 06, 2018 11:06 pm

Ya, I would also like a version compatible with .net core. I have had to convert my apps to earlier VS project formats to use phidgets. Love the modules but need UWP apps for my customers.

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Support for .NET Core?

Postby Patrick » Mon Apr 09, 2018 11:00 am

Yes. There is some code in the library that's .NET Framework specific that needs to be generalized, so I can't offer a firm timeline. As I add new .NET targets, they will be added to the nuget package as well.

As for UWP, I need to look into whether this will be possible because of the C library.

-Patrick

Rbguy
Fresh meat
Posts: 3
Joined: Fri Apr 06, 2018 11:02 pm
Contact:

Re: Support for .NET Core?

Postby Rbguy » Mon Apr 09, 2018 1:11 pm

Cool. Can't wait! Awesome having a Nuget package btw!

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Support for .NET Core?

Postby Patrick » Tue Apr 10, 2018 4:54 pm

Looks like UWP is possible only for open over network. UWP blocks direct access to USB devices.

-Patrick

Rbguy
Fresh meat
Posts: 3
Joined: Fri Apr 06, 2018 11:02 pm
Contact:

Re: Support for .NET Core?

Postby Rbguy » Tue Apr 10, 2018 5:01 pm

That's not good.

Looks like they have a pretty good setup for creating custom drivers. What setup/protocol do you use to access the device?

https://code.msdn.microsoft.com/windowsapps/Custom-USB-device-access-ba5137cc

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Support for .NET Core?

Postby Patrick » Wed Apr 11, 2018 11:49 am

It may be possible by creating a UWP-only C library with a completely new USB interface, but we would have to decide if this makes sense based on how many user may actually need this. Even so, it may not be possible because Phidgets are HID-class, so we can't use Windows.Devices.Usb, but would have to use Windows.Devices.HumanInterfaceDevice which may or may not expose enough access to the devices.

At any rate, first step is adding .NET core and .NET standard targets to the .NET library on nuget. I do have this working internally. UWP works for network.

-Patrick

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Support for .NET Core?

Postby Patrick » Thu Apr 12, 2018 4:08 pm

Just published new nuget package with support for more SDKs, including .NET Core.

-Patrick

Jokerminator
Phidgetsian
Posts: 10
Joined: Tue May 08, 2018 5:36 am
Contact:

Re: Support for .NET Core?

Postby Jokerminator » Tue May 08, 2018 5:51 am

Hello,

I just registered here to post this.

I am also very interested in using Phidgets within a Universal Windows Platform App.
I am new to UWP but I am an experienced Unity ( with C# ) developer.

My plan is to communicate from/to Unity to/from Phidgets hardware via a UWP using sockets because I don't want to write a wrapper for Unity ( other hardware like servo motors ) and want to be flexible to maybe also support e.g. the Unreal Engine.


Is there anything special I need to do or consider to use the NuGet package compared to the standard library ?
( this one?: https://www.nuget.org/packages/Phidget2 ... 0.20180412 )


Best
Greetings

User avatar
Patrick
Lead Developer
Posts: 3099
Joined: Mon Jun 20, 2005 8:46 am
Location: Canada
Contact:

Re: Support for .NET Core?

Postby Patrick » Tue May 08, 2018 12:09 pm

The nuget package bundles the Windows native library - it will look for the dll folder installed by the nuget package. For UWP, you will probably need to copy this folder into your AppX folder. In UWP, direct connection to USB Phidgets does not work, but you can use the Phidget Network Server to open Phidgets. For Unity, you should just be able to use the .NET library directly. You should use the .Net 2.0 library from the nuget package for Unity.

-Patrick


Return to “C#.NET”

Who is online

Users browsing this forum: No registered users and 0 guests