Zaxter
Zaxter

Reputation: 3035

Xaml with shared projects: Could not load file or assembly

I'm trying to use Xaml with Forms in a shared project, so I was using the xaml code example for ListView using Xaml here.

This is my project structure:

Project structure

As, you can see, I haven't changed much. Here's the sample code on xamarin's github repo using PCL.

I'm getting the following error: Could not load file or assembly 'XamarinFormsXamlSample' or one of its dependencies. The system cannot find the file specified. Could not load file or assembly 'XamarinFormsXamlSample' or one of its dependencies. The system cannot find the file specified.

What am I doing wrong and how can I solve this error?

Upvotes: 0

Views: 1309

Answers (1)

Cesar Tomatis
Cesar Tomatis

Reputation: 599

Go to you iOS property settings and change the Assembly name from XamarinFormsXamlSampleiOS to XamarinFormsXamlSample, that should solve your problem, this only happens with shared projects.

Upvotes: 2

Related Questions