Forum Xamarin.Forms

Cannot resolve Assembly or Windows Metadata file 'Shared.dll'

hannehanne Member ✭✭
edited June 2018 in Xamarin.Forms

I am working on a xamarin forms application which targets android and ios. the app works fine when running both android and ios, but i also wanted to add support for UWP. I added a new project which targets windows and i have added all the packages, dependencies and reference to the core project and all that was required, but i keep getting this error when i try to run the app.

Cannot resolve Assembly or Windows Metadata file 'Shared.dll'

and

Type universe cannot resolve assembly: Shared, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null.

I have no idea why i am getting this error, so if anyone has any information about this, it would be greatly appreciated.

Thanks

Best Answer

  • hannehanne Member ✭✭
    Accepted Answer

    I fixed the issue. it was a problem with one of the classes in a different project in the solution. I don't really know what caused the issue, but I got it to work adding the problem class to a different part of the project.

Answers

  • JGoldbergerJGoldberger USMember, Forum Administrator, Xamarin Team, University Xamurai
    edited July 2018

    I having no idea what Shared.dll is, it is impossible to say. As a first step, please go over this guide about adding a UWP project to an existing Xamarin Forms solution.

  • hannehanne Member ✭✭
    Accepted Answer

    I fixed the issue. it was a problem with one of the classes in a different project in the solution. I don't really know what caused the issue, but I got it to work adding the problem class to a different part of the project.

Sign In or Register to comment.