MobileEssentials / FormsPlayer

Xamarin Forms Player Demo
MIT License
79 stars 24 forks source link

System.IO.FileNotFoundException #8

Open JarJarBinkz opened 8 years ago

JarJarBinkz commented 8 years ago

The following xaml code I get an error message.

<?xml version="1.0" encoding="utf-8" ?> <CarouselPage xmlns="http://xamarin.com/schemas/2014/forms"' xmlns:x="http://schemas.microsoft.com/winfx/2009/xaml" xmlns:prism="clr-namespace:Prism.Mvvm;assembly=Prism.Forms" prism:ViewModelLocator.AutowireViewModel="True" x:Class="MainPage" x:Name="MainPageForm"> <ContentPage> <Label>Year</Label> </ContentPage> <ContentPage> <Label>Year2</Label> </ContentPage> </CarouselPage>

System.IO.FileNotFoundException: Could not load file or assembly 'Prism.Forms' or one of its dependencies.

irschneider commented 8 years ago

I have the same issue, but on every page. :( For you, the other page types work?

Shaddix commented 8 years ago

If you use third party libraries (i.e. Prism), you have to integrate Xamarin.Forms.Player in your app so ir could load these custom libraries

Ali-Syed commented 8 years ago

I am having the same issue. I can run sample prism examples but when I create one myself I am getting this error.

kzu commented 8 years ago

To have custom controls, viewmodels, value providers, markup extensions and what-not, you should create your own player with the right references. That's what the https://www.nuget.org/packages/Xamarin.Forms.Player package is for :)

That way, it will properly resolve even custom controls you happen to use.