lundi 3 août 2015

SQLite-net PCL and Xamarin.Forms

I have a problem with this Nuget Package: http://ift.tt/1OKAl5T

In my test Case I have a PCLLibrary called "PCL" with this NuGet Package. And an emtpy class which has

using SQLite;
namespace PCL
{
    public class Test
    {

    }
}

Now I create a new Xamarin.Forms PCL Project and reference this Library

using System;
using Xamarin.Forms;

namespace PCL
{
    public class App : Application
    {
        public App ()
        {
            // The root page of your application
            MainPage = new ContentPage {
                Content = new StackLayout {
                    VerticalOptions = LayoutOptions.Center,
                    Children = {
                        new Label {
                            XAlign = TextAlignment.Center,
                            Text = "Welcome to Xamarin Forms!"
                        }
                    } 
                }
            };
            var test = new Test();
        }
    }
}

Now I run my App in iOS Simulator and it gets killed ... When i am not creating an instance of Test this App starts fine... When I integrate this Package directly in my Forms Library, I can use it normally. What can cause this?

Aucun commentaire:

Enregistrer un commentaire