The “ResolveLibraryProjectImports” task failed unexpectedly

后端 未结 24 1963
醉话见心
醉话见心 2021-01-01 09:48

I have a Xamarin project, which is based on MvvmCross. The project is for both iOS and Android. I opened this project in Visual Studio 15. I got some errors, wh

相关标签:
24条回答
  • 2021-01-01 09:53

    This happened to me when I accidentally installed nuget packages in a class library that was included in the solution. I just had to uninstall the packages from the class library project.

    0 讨论(0)
  • 2021-01-01 09:54

    I've literally just had this with a brand new Xamarin.Forms application in Visual Studio 2017.

    The root cause appears to be that I let VS2017 create the project in it's default location 'C:\Users\Dave\Documents\Visual Studio 2017\Projects' and this has resulted in one of more files now having a path which it too long.

    I moved the solution to the root of my D drive and it builds without any problem.

    0 讨论(0)
  • 2021-01-01 09:54

    I had this error as well. In my situation it was accompanied by Xamarin.Forms.Maps not importing into the one of the xaml.g.cs files correctly. I had all the using statements correct. The IDE was showing no errors but it kept telling me that Xamarin.Forms did not have a name space Map. It was generating in MapPage.xaml.g.cs as Xamarin.Forms.Map instead of Xamarin.Forms.Maps.Map and I couldn't force a fix manually. It turned out though that the suggested xmlns:maps for maps was causing the problem. The IDE had told me to use "http://xamarin.com/schemas/2014/forms" but the correct namespace is "clr-namespace:Xamarin.Forms.Maps;assembly=Xamarin.Forms.Maps". After I changed this it was able to build my App1.dll

    0 讨论(0)
  • 2021-01-01 09:58

    Shorteninig the path(folder names) to the solution solved it for me.

    For example : the path was : C:\Users\Username\Downloads\Compressed\ListView-GettingStarted-in-Xamarin-Forms-master\ListView-GettingStarted-in-Xamarin-Forms-master\GettingStarted

    and i changed it to : C:\Users\HelloKali\Downloads\Compressed\3\2\1.

    0 讨论(0)
  • 2021-01-01 09:59

    I'm working with XAML (.xaml) and code-behind file (.xaml.cs). My issue was that I had the same page name, but under different namespaces. The XAML and the code behind file didn't match together. So finally it was an issue with my XAML, because of course it couldn't find the view element.

    0 讨论(0)
  • 2021-01-01 09:59
    xmlns:maps="clr-namespace:Xamarin.Forms.Maps; assembly=Xamarin.Forms.Maps"
    

    The problem was because of the space between the semicolon above and the assembly as stated above. As soon as the gap is closed, it compiles.

    0 讨论(0)
提交回复
热议问题