I heard we can create package for WP8.1 from UWP project if you haven't used any UWP specific codes? Just wanted to check how can we do that?
Nope, you can't create WP8.1 package from a UWP project. UWP apps have dependencies on Windows 10 Runtimes and compilation targets one or another version of Windows and corresponding SDKs.
What you can do is to use shared code between two projects. E.g. you can create a portable class library that will target both Windows Universal (10) and Windows Phone 8.1. There is also a detailed article by Lance McCarthy on how to use the same XAML for both UWP and WP8.1.
Related
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
In a project that's targeting Windows Phone 8.0, is there a way to conditionally use WP8.1 features while retaining compatibility with 8.0?
No you can not. If you need wp 8.1 features you need to target wp 8.1. According to adduplex 77.8% of windows phones are using wp 8.1 with 8.9 using wp8.
The only option to do this is to create a project that has a portable class library, wp8 and wp8.1 project in it. Put as much of code in the portable class library as possible. Publish both versions of the app. I would use something like MVVMLight for this
My PCL project is setup with these targets:
.NET Framework 4
Silverlight 5
Windows 8
Windows Phone 8.1
Windows Phone Silverlight 8
I created the PCL target for my nuspec file using the NuGet Package Explorer.
My target looks like this: lib\portable-net4+sl5+wp8+win8.
If I create a Windows 8 test project, I can find the latest version of my library in NuGet. If I create a Windows Phone 8.1 project, this version does not show up.
What am I doing wrong here?
According to NuGet documentation (please take a look here at "Common Framework and Profile Targeting Examples" section) you need to add wpa to your target to make it work. Please be also aware that wpa target works only with NuGet 2.8.1+
Those same profile targets are what is used for the items in the portable profile target.
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.
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.