GRPC C# Library For a Windows 8.1 Phone App - c#

Is it possible to use GRPC C# library with a Windows Phone App? When I try to install GRPC through NuGet I receive the following error:
Error Could not install package 'Grpc.Core 1.0.0'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author. 0
Has anyone had any luck installing GRPC C# library for a windows phone app?

As of now, Windows Phone Apps are not supported by gRPC C#. Technically, supporting them would be possible but we are not sure it's worth the work at this point - we have different priorities (User experience, performance and supporting other platforms).
Here's a github issue that tracks the discussion: https://github.com/grpc/grpc/issues/7859

Related

How to use Iot.Device.Bindings nuget package on Windows uwp app?

I have Windows UWP foreground app running on my raspberry (windows 10 iot core). I want to use Iot.Device.Bindings nuget package to capture data from various sensors (e.g. bme680). But looks like this package is unsupported on UWP:
NU1202: Package Iot.Device.Bindings 1.2.0 is not compatible with uap10.0.17763 (UAP,Version=v10.0.17763). Package Iot.Device.Bindings 1.2.0 supports:
- net5.0 (.NETCoreApp,Version=v5.0)
I tried to create backroung job for iot core, but same error.
Can someone suggest approch how to achive that?
Thanks in advance!
Yes, the Iot.Device.Bindings package does not support UWP on Windows IoT Core but works for .net core. Since the library uses APIs in namespace System.Decive.. For UWP app, you need to use APIs in namespace Windows.Device.. At the moment, I can not find a package which is implemented for various sensors. Here are two suggestion for that:
Create a .net core app which uses the Iot.Device.Bindings nuget package, and build a channel to send the data from .net core app to your UWP app, such as tcp, or web API.
Imeplement the library for UWP by referring the source code.

Azure Mobile Services & Newtonsoft.Json 7

I recently upgraded Newtonsoft.Json in my project from version 6(.0.6) to 7(.0.1).
When i tried to publish the project to Azure i got an unhealthy service and the following message in the Logs:
ERROR
Found conflicts between different versions of the same dependent
assembly 'Newtonsoft.Json': 6.0.0.0, 7.0.0.0. Please change your
project to use version '6.0.0.0' which is the one currently supported
by the hosting environment.
Does that mean that azure doesn't support Newtonsoft.Json 7, or am i doing something wrong? Have i forgot something? If azure doesn't support version 7 is there a workaround? I must use thath version because i am trying to install a 3rd party package that requires it.
Azure Mobile Services has specific hosted versions of its NuGet packages and dependencies and does its own binding redirects at runtime. Unfortunately, this means you have to use Newtonsoft 6.0.4. This is specified as a dependency in the nuspec for WindowsAzure.MobileServices.Backend: https://www.nuget.org/packages/WindowsAzure.MobileServices.Backend/
What I recommend instead is that you use Azure Mobile Apps which removes this limitation. Mobile Apps is still in preview, but we recommend that customers building a new app start here. Mobile Apps is part of App Service and provides all of the benefits of that platform, such as VNET/VPN, backup and restore, more scale options, more CI options, WebJobs, etc.

Facebook.Client package installing error

I am trying to install Facebook.Client package in my Visual Studio project, but it failed with this message:
Install-Package : Could not install package 'Facebook.Client 1.0.4'. You are trying to install this package into a project that targets '.NETFramework,Version=v4.5', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Facebook.Client is for Windows Store and Windows Phone apps. From the readme:
The Facebook C# SDK for Windows & Windows Phone helps .NET developers build Windows Phone and Windows Store applications that integrate with Facebook.
Since your project targets .NET Framework 4.5, I'm assuming that you're building a desktop or ASP.NET app. What you're looking for is the Facebook C# SDK.

Facebook Parse SDK not working on Windows Phone 8.1

I tried to convert my parse app into "universal app". I upgraded my project into Windows Phone 8.1 and I cannot install Parse SDK anymore. NuGet tells me:
Could not install package 'Parse 1.2.14'. You are trying to install this package into a project that targets 'WindowsPhoneApp,Version=v8.1', but the package does not contain any assembly references or content files that are compatible with that framework. For more information, contact the package author.
Did anyone managed to install Parse for a project targeting Windows Phone 8.1?
BTW It worked for Windows 8.1 project.
The nuget package hasn't been updated to work with the Universal apps. You can download the .NET SDK from their website directly however and get the Universal app support. The SDK contains a Parse.dll, ParseWindows.dll and ParsePhone.dll.
You can place the Parse.dll and ParsePhone.dll in to your Windows Phone 8.1 Universal references and it should work.

Azure Mobile Services in a PCL project that includes WP8

Is it possible to inlcude AzureMobileServices client in a PCL that includes WP8?
I used to have a PCL project that had it up until I upgraded it to VisualStudio 2013.
The required PCL is profile78: .NET4.5, Windows Store apps (Win8), WP8, and the Xamarin twins.
I tried following this recommendation from Xamarin to reference the component's DLL directly, however the DLL was compiled for profile7 (that does not include WP8).
Yes. Make sure you are using at least version 1.1.5 of the Mobile Services NuGet package or Xamarin Component and you will be able to successfully use it from a PCL that includes WP8. For a tutorial on how to do this, see here.
It looks like their nuget package only includes directories for Store, .Net 4.5, Wp8, and Portable-Store+.Net 4.5. However if I ildasm the dll in the portable folder I see it was built for Profile78, which does support phone.
This looks like a bug with the WindowsAzure.MobileServices.nupkg nuspec authoring.

Categories