Azure / azure-iot-sdk-csharp

A C# SDK for connecting devices to Microsoft Azure IoT services
Other
464 stars 493 forks source link

.net core support #31

Closed tameraw closed 7 years ago

tameraw commented 7 years ago

From @ondrejtomcik on October 22, 2016 20:44

Hello, we're using .net core and I am missing support for Microsoft.Azure.Devices . When it will be added please? Service fabric already supports .net core but this main IoT SDK, which should be first in my opinion, is still missing.

Thanks

Copied from original issue: Azure/azure-iot-sdks#887

tameraw commented 7 years ago

From @olivierbloch on October 25, 2016 17:25

Hi @ondrejtomcik We do have this in our backlog but haven't prioritized over other features yet and we cannot commit to an ETA just yet either. We understand the importance of supporting .Net Core, and if you want to give it a shot before we can get to it, we'd be more than happy to accept your contribution and can even try and point you in the right direction to make this happen. We'll update the thread as soon as we have a clearer idea of when the work will be done. Thanks

tameraw commented 7 years ago

From @ondrejtomcik on October 26, 2016 6:11

Okay, thanks for the info. I will try to find some time for contribution. Can we discuss more deeply what should be done to have at least the idea where to begin?

tameraw commented 7 years ago

From @arturl on October 27, 2016 4:6

Hi @ondrejtomcik,

I suggest looking at the work we did to add support for UWP. Create a new project of type "Class Library (.NET Core)", start moving the source files from the Microsoft.Azure.Devices.csproj there, and see what breaks. You will discover a few APIs not supported for .NET Core, which will be a similar set to UWP -- look at how WINDOWS_UWP was used in the code.

If you succeed in pulling it off, I recommend creating a shared project to minimize duplication in multiple csproj files, as we did here.

Good luck, and thanks so much for your help!

tameraw commented 7 years ago

From @ondrejtomcik on October 27, 2016 6:13

@arturl thank you. I'll try to find a time to make it happen.

tameraw commented 7 years ago

From @ondrejtomcik on October 27, 2016 14:38

Hello again @arturl @olivierbloch, I would like to ask you if you know when https://github.com/Azure/azure-amqp will be released? Repo updated to work with .net core but released nuget is old.

Could you please help me with another library, Microsoft.Azure.ServiceBus.EventProcessorHost ? ServiceFabric is already able to use with .net core but this key library is still not. Do you have any info regarding this please?

thanks a lot

tameraw commented 7 years ago

From @olivierbloch on October 27, 2016 14:46

Hi @ondrejtomcik I'll work on getting the Nuget Package updated for the azure-amqp library. For the EventProcessorHost one, it's a different team owning it, I'll try and see what their plans are. If we could get the C2D messaging and the registry manager working already that'd be great.

tameraw commented 7 years ago

From @ondrejtomcik on October 27, 2016 19:9

@olivierbloch great :) One more question, when will be twins functionality released? I should maybe start to migrate from azure-iot-sdks-preview, no?

Let me know if you have some info regarding EventProcessorHost please. Thanks

tameraw commented 7 years ago

From @olivierbloch on October 27, 2016 19:41

@ondrejtomcik We expect to have the preview repo merged back into the mainstream one next month. But I recommend you work in the current repo for this work.

tameraw commented 7 years ago

From @olivierbloch on October 27, 2016 19:51

@ondrejtomcik Regarding EventProcessorHost support for .Net Core, it seems there is work in progress, but not ETA yet. In the meantime we could consider using https://github.com/Azure/amqpnetlite

tameraw commented 7 years ago

From @ondrejtomcik on November 10, 2016 19:39

@olivierbloch How it looks with the azure amqp nuget release ?

tameraw commented 7 years ago

@ondrejtomcik - ETA before end of this month.

tameraw commented 7 years ago

From @radu-matei on December 2, 2016 13:45

Any updates on the .NET Core support for the IoT Hub SDK?

Is there any way I can get to help?

Thanks!

tameraw commented 7 years ago

From @ondrejtomcik on December 5, 2016 9:0

Hi Radu, I was waiting for amqp release, but in a meantime we switched to different IoT platform. IoT Hub does not meet our criteria after deep evaluation.

tameraw commented 7 years ago

From @Kordonme on December 13, 2016 21:46

+1 Bummer to see that Microsoft.Azure.Devices is not .NET Core compatible. Updated ETA, or should we get our hands dirty?

yfakariya commented 7 years ago

Is there any roadmap or status of this? Waiting #35 fix? I'm waiting .NET Core build to use C# device SDK's features in linux gateways.

I also have private fork for .NET Standard and ready to PR if you will accept.

darrenhull commented 7 years ago

The event hubs library for .net Standard has been released, do we have an update on the devices library port? Does #35 still need fixing? I'm able to help with some direction.

darrenhull commented 7 years ago

@tameraw the comment above "I suggest creating a shared project as shown here" 404's, can you provide another example?

darrenhull commented 7 years ago

@tameraw found the link: https://github.com/Azure/azure-iot-sdk-csharp/tree/master/shared

adminnz commented 7 years ago

Whats the status of this? IoT Hub is missing its target if it isnt even going to work on the majority of IoT Devices (low powered linux ARM & Atom platforms)

yfakariya commented 7 years ago

The release note says that some works are in progress, but it is not clear. What items are still working?

yfakariya commented 7 years ago

...and I found that latest NuGet package does not contain .NET Standard dll.
https://www.nuget.org/packages/Microsoft.Azure.Devices.Client

Is this intended?

WillooWisp commented 7 years ago

I don't see any .NET Core related targets in the NuGet spec, but .NET Standard is mentioned in the docs. What's the .NET Core status? MQTT is not working for example, and using AMQP does not work either, since it complains about missing DLL. {System.IO.FileNotFoundException: Could not load file or assembly 'Microsoft.Azure.Amqp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'. The system cannot find the file specified. File name: 'Microsoft.Azure.Amqp, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35'

yfakariya commented 7 years ago

Hi @tameraw, any information about our questions? I checked latest (v1.2.7) nupkg and saw that it did not contain netstandard build. Thanks!

darrenhull commented 7 years ago

Do we have an update on this? Is there a preview or beta we could try? I'm very disappointed in the lack of feedback that we are getting.

ancutapasolea commented 7 years ago

Hello, any updates about .Net Core support?

frnk01 commented 7 years ago

Updates please. Need .netcore support.

olivierbloch commented 7 years ago

.Net Core support has been released to the Device client SDK (Microsoft.Azure.Devices.Client 1.2.9) Go ahead and get the latest NuGet Package form NuGet to try it out. We are now working on the Service client (Microsoft.Azure.Devices) an should have it there too soon.

tameraw commented 7 years ago

.Net Core support now available for Service client as well.

JoseFMP commented 7 years ago

Which version is currently supported? I am trying to run .NET Core 2.0 application in service fabric and seems unsupported

oycbox commented 6 years ago

Microsoft.Azure.Devices.Client 1.6.2 on .NET Core 2.0 console application still not supported? i got silent error out when running the Device sample code on dotnet core.

CIPop commented 6 years ago

@oycbox, we support NetStandard1.3 for a while and the console app should work. I'm currently working on a larger cleanup and port to netstandard2.0, available in the next release.

Please create a new issue and describe the bug. Please include a simple code example (or point at the sample that doesn't work).

androidand commented 6 years ago

Any news for .NET Core 2.0 and Azure IoT? Would be awesome to se an example with a .NET Core API app.

CIPop commented 6 years ago

@androidand Yes! We now have full .Net Standard 2.0 starting with the 3-18-2018 release! This was a complete overhaul of the build system, conditional compilation, etc. Please let us know what you think!

Please open separate issues if you find bugs.