Lasse Madsen
Lasse Madsen

Reputation: 602

Creating a UWP project for Xamarin

I am trying to add UWP to my Xamarin project, as I have done with Windows Phone 8.1. Unfortunately I first saw that Acr.XamForms.UserDialogs is not available on Windows.Phone 8.1, until I after I had created it and trying to run it, as this error occurs.

I then tried to add an UWP project, but the 1st thing I found wierd, is that it creates 2 projects; project.UWP.Windows (Windows 8.1) and project.UWP.WindowsPhone (Windows Phone 8.1). Do it have to create 2 projects or only one?

I followed this guide.

I continued, but then it could not find Xamarin.Forms.Platform.UWP. I am using Xamarin.Forms; version 2.2.0.45 and Visual Studio 2015 Enterprise on Windows 10.

UPDATE
I figured out, I have choosen the Universal for Windows 8.1, so the problem layed in there.
I created an UWP project now, but it still says Cannot resolve Assembly or Windows Metadata file 'Xamarin.Forms.Platform.WinRT.dll' and Type universe cannot resolve assembly: Xamarin.Forms.Platform.WinRT, Version=1.5.0.0, Culture=neutral, PublicKeyToken=null.

I am using these NuGets packages

Acr.UserDialogs                              v5.2.2
Acr.XamForms.UserDialogs                     v5.0.0
Microsoft.NetCore.UniversalWindowsPlatform   v5.1.0
MR.Gestures                                  v1.3.4
SignaturePad.Xamarin.Forms.PCL               v1.0.0.1
SQLite.Net-PCL                               v3.1.1
Xam.Plugins.Settings                         v2.1.0
Xamarin.Forms                                v2.2.0.45
Xamarin.Insights                             v1.10.6
XLabs.Core                                   v2.2.0-pre2
XLabs.Forms                                  v2.2.0-pre2
XLabs.IoC                                    v2.2.0-pre2
XLabs.Platform                               v2.2.0-pre2
XLabs.Serialization                          v2.2.0-pre2

I am using an old version of Xamarin.Insights because I was using Silverlight before.

Upvotes: 0

Views: 1474

Answers (1)

Akash Amin
Akash Amin

Reputation: 2761

If you see in the setup on the right window it shows both Windows 8.1 and Windows Phone 8.1.

Window 8.1 is for windows application development. Which can be run on windows 8.1 PC's.

Windows Phone 8.1 is for Windows phone, this is windows mobile application development.

Upvotes: 1

Related Questions