DirtyNative
DirtyNative

Reputation: 2834

Xamarin.Forms.UWP - error PRI175

I've got 3 Projects inside my Solution.

The Problem here is, that if Project A references both B + C, I get 2 errors when building:

Unfortunatly this is everything I get. Removing reference Project C or B from Project A lets me build without any problems, but I need classes from both Project B + C in Project A.

So, does anyone knows whats causing these Build errors here?

Thanks a lot for your help!

Edit:

I recreated the structure and the same error appears. The solution can be found here. Open TestSolutionC, Build TestSolutionC.UWP

Upvotes: 8

Views: 2581

Answers (2)

zax
zax

Reputation: 946

Try this - In your main app project file, under top-most <PropertyGroup>, add:

<DisableEmbeddedXbf>false</DisableEmbeddedXbf>

Related discussion - Developer Community thread

Upvotes: 3

Kusal Dissanayake
Kusal Dissanayake

Reputation: 752

This happens due to many reasons. Please check the solutions mentioned below.

SOLUTION 1: When you are adding a third party render library (Project C), check that you have the same version of Xamarin.Forms used throughout the solution projects. Conflicts may occur if multiple versions of Xamarin.Forms have been used.

Use the same Xamarin.Forms version or update the entire solution's Xamarin.Forms version to a latest stable version from the NuGet Manager

SOLUTION 2: Make sure that your project files within the solution do not contain unwanted references. If found, resolve duplicate references, Clean and Rebuild the project.

See also https://stackoverflow.com/a/45217513/4353760

Upvotes: 2

Related Questions