Comments (14)
@danstoian - Thanks for filing this. We'll look into adding support for .net 4.5 as well.
from azure-iot-sdk-csharp.
From @markrad on October 5, 2016 0:27
Hi @danstoian,
I reviewed your pull request but you unfortunately made it against the master branch. I can't merge anything into that branch. The develop branch has undergone a significant reorganization so I was having difficulty getting a clean merge of your changes into that branch.
To try and circumvent this, I loaded the develop branch version of iothub_csharp_deviceclient.sln into Visual Studio and modified the project properties of the device project to target .Net 4.5. Unfortunately this caused catastrophic build errors when I attempted a rebuild. I'm still looking into the cause.
Mark Radbourne MSFT
from azure-iot-sdk-csharp.
From @danstoian on October 13, 2016 11:53
Hi @markrad,
I've created a new pull request for the azure-amqp project this time in the develop branch: Azure/azure-amqp#43
I've created a new package for Microsoft.Azure.Amqp locally and then included the new one in iothub_csharp_deviceclient.sln.
The solution didn't build correctly the first time because there is a new method void SetMonitor(ITransportMonitor usageMeter) in Microsoft.Azure.Amqp.Transport that need to be implemented in ClientWebSocketTransport and LegacyClientWebSocketTransport... otherwise the solution won't compile.
Since I'm not quite sure what it does I've created an override in both classes that will throw a NotImplementedException.
The bottom line is that the solution compiles locally. I can make a pull-request for Azure-iot-sdks if you wish. You can check my commit at: https://github.com/Azure/azure-iot-sdks/compare/develop...danstoian:develop?expand=1
from azure-iot-sdk-csharp.
@danstoian - This is currently WIP. Will update the issue as soon as we have news.
from azure-iot-sdk-csharp.
From @markrad on November 10, 2016 22:29
Hi @danstoian,
Currently I am pestering the product group to publish your changes to Microsoft.Azure.Amqp. The Nuget package is still targeting .Net 4.5.1. Once they have updated that I will go ahead and make the rest of the changes to target this to .Net 4.5.
Mark Radbourne MSFT
from azure-iot-sdk-csharp.
From @danstoian on November 11, 2016 19:49
Hi @markrad,
Thx for the update.
I'm looking forward to it.
Br,
Dan
On 11 Nov 2016, at 00:29, markrad [email protected] wrote:
Hi @danstoian,
Currently I am pestering the product group to publish your changes to Microsoft.Azure.Amqp. The Nuget package is still targeting .Net 4.5.1. Once they have updated that I will go ahead and make the rest of the changes to target this to .Net 4.5.
Mark Radbourne MSFT
—
You are receiving this because you were mentioned.
Reply to this email directly, view it on GitHub, or mute the thread.
from azure-iot-sdk-csharp.
@markrad - A new Nuget package has been released for Microsoft.Azure.Amqp.
from azure-iot-sdk-csharp.
Hello @danstoian can you go ahead and try using .net framework 4.5 with the latest version of the Azure IoT sdk? Thanks.
from azure-iot-sdk-csharp.
It still doesn´t work. I do get this error when referencing Microsoft.Azure.Devices with a net45 target:
Error Package Microsoft.Azure.Devices 1.2.4 is not compatible with net45 (.NETFramework,Version=v4.5). Package Microsoft.Azure.Devices 1.2.4 supports:
- net451 (.NETFramework,Version=v4.5.1)
- uap10.0 (UAP,Version=v10.0)
This is how my .csproj looks like:
<ItemGroup Condition=" '$(TargetFramework)' == 'net45' ">
<PackageReference Include="Newtonsoft.Json" Version="9.0.1" />
<PackageReference Include="Microsoft.Azure.Devices.Client" Version="1.2.8" />
<PackageReference Include="Microsoft.Azure.Devices" Version="1.2.4" />
<Reference Include="System" />
<Reference Include="Microsoft.CSharp" />
<Reference Include="System.ComponentModel.DataAnnotations" />
</ItemGroup>
from azure-iot-sdk-csharp.
Hello @danstoian thanks for the details.
If you compile the service and device sdk for .NET45 you will have the dlls on that version. Change the properties (Target Framework to .NET Framework 4.5) on the following projects:
Service
- Microsoft.Azure.Devices
- Microsoft.Devices.Shared
Client
- Microsoft.Azure.Devices.Client
On your project, instead of adding the NuGet package can you reference the Dlls for the compiled ones?
Let me know the results.
Thanks!
from azure-iot-sdk-csharp.
Hello @danstoian,
Letting you know that the next release of the SDK will include support for .NET45 in the Nuget package.
All Best
from azure-iot-sdk-csharp.
Thx a lot. Looking forward.
from azure-iot-sdk-csharp.
Hello,
Latest nuget package Microsoft.Azure.Devices 1.16 still targets .net 4.5.1
Any news in which version is included support in nuget for .net 4.5 ?
Thank you,
Adriana
from azure-iot-sdk-csharp.
@Adrya84 we don't support the .NET 4.5 TargetFrameworkMoniker and we have no plan in adding that support. New components (Provisioning) will only support netstandard2.0
(which, for Framework is .NET 4.6.1+).
We would like to understand more about your scenario. The runtime was deprecated a long time ago: https://blogs.msdn.microsoft.com/dotnet/2015/12/09/support-ending-for-the-net-framework-4-4-5-and-4-5-1/ and 4.x versions cannot coexist. This means that you are most likely running on a newer runtime although your app is targetting a lower TFM. Would it be possible to increase the application's TFM to 4.5.1+?
from azure-iot-sdk-csharp.
Related Issues (20)
- AOT-compatible Microsoft.Azure.Devices.Client HOT 1
- SDK version :2.0.0-preview007 CreateAsync() Json Error
- [Bug Report] WebSockets not working on Web Assembly HOT 1
- Latest device client does not connect over MQTT HOT 9
- Errors while running e2e tests with .NET 8.0 HOT 1
- How to use tpm private key for TLS with IoT Hub SDK (Not TPM Attestation) - for DeviceAuthenticationWithX509Certificate HOT 4
- [Bug Report] AMQP DeviceClient is slow to respond to device being disabled
- Desired Properties callback not triggering after a reconnect HOT 5
- [feature request] Move to System.Text.Json to support AOT HOT 2
- [Bug Report] DeviceClient.SendEventAsync takes over one minute after update from 1.42.0 to 1.42.2 HOT 7
- [BUG] error CS0426: The type name 'Create' does not exist in the type 'ServiceClient' HOT 1
- Building digital twin of the robotic arm [Technical Question] HOT 2
- How do I send data stored in array (floating type) from my robot to IoT hub? [Technical Question]
- [Bug Report] Fails to establish TPM connection HOT 1
- [Technical Question] Security: Check root certificate on device-to-cloud connection HOT 10
- Unhandled exception. Microsoft.Azure.Devices.Client.Exceptions.IotHubException: Request 817bda7c-6fc4-40e0-8946-93eb851fcb12 returned status 403 [Bug Report] HOT 7
- [Bug Report] Send message in batch to multiple outputs using ModuleClient throws HOT 2
- Is it possible to send bulk messages in telemetry from device to IoT hub? [Technical Question]
- [Technical Question] HttpClientHelper error code 400030 HOT 3
- [Bug Report] When try to fetch reported properties after updating the reported property it will return previous version of reported property not the latest one. HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from azure-iot-sdk-csharp.