3

Hi I'm running a Xamarin PCL project thats deploying to all platforms including UWP windows 10 and windows 8.

I've just merged a branch on git and resolved some conflicts (not very well clearly) and i'm getting a few errors.

The first error:

The "GenerateResourceDesigner" task failed unexpectedly.
System.IO.FileNotFoundException: Could not load assembly 'Vigour, Version=, Culture=neutral, PublicKeyToken='. Perhaps it doesn't exist in the Mono for Android profile?
File name: 'Vigour.dll'
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(AssemblyNameReference reference, ReaderParameters parameters)
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName, ReaderParameters parameters)
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.Resolve(String fullName)
   at Xamarin.Android.Tuner.DirectoryAssemblyResolver.GetAssembly(String fileName)
   at Xamarin.Android.Tasks.GenerateResourceDesigner.<Execute>c__AnonStorey0.<>m__0(String ass)
   at System.Linq.Enumerable.WhereSelectListIterator`2.MoveNext()
   at Xamarin.Android.Tasks.ResourceDesignerImportGenerator.CreateImportMethods(IEnumerable`1 libraries)
   at Xamarin.Android.Tasks.GenerateResourceDesigner.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Microsoft.Build.BackEnd.ITaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.<ExecuteInstantiatedTask>d__26.MoveNext() Vigour.Droid            

The second one:

I know this is a common problem and I've tried to un-tick and tick the build of each project in the solutions configuration.

I've also tried to remove the .vs/../.suo file to reset the project

Errors that are displayed when building Xamarin Solution

However I've had no luck. I think that it might have something to do with the merger that involved changing the .csproj files.

Community
  • 1
  • 1
  • For the second one, have you tried deleting all files in each project's `/obj/` and `/bin/` folders and then doing a rebuild? I think that fixed that error for me, though I was not building against windows projects. – hvaughan3 Feb 25 '16 at 16:39
  • I have tried this. In fact I was worried that this might be the cause of my problems. They no longer contain any files after a build. –  Feb 25 '16 at 16:40
  • All of that stuff gets rebuilt when ever you do a build so that should not cause any issues. Hopefully someone can help you fix this. – hvaughan3 Feb 25 '16 at 16:41

3 Answers3

1

Try to set API to 23 and then Rebuild the project it will solve the problem

Adit Kothari
  • 63
  • 1
  • 10
0

Solution to this was to reinstall the xamarin forms for android and as @hvaughan3 said, deleting the bin and obj folder for all directories along with the packages.

0

In my case, I was getting error The "ResolveLibraryProjectImports" task failed unexpectedly. when I open a project downloaded from Xamarin.University on Windows 10 and the path for one of the files ends up being to long (longer than 260 characters). So, to solve my problem, I would copy the directory as shallow as possible, so instead working directly in the structure of downloaded project, I would copy deepest directory containing the project into my C:. Building would work then without an issue as the path to all files in the project got shortened.

So, say my downloaded structure from Xamarin.University is something like C:\Users\me\Desktop\XAMARIN\XAMARIN CERTIFICATION\forms\xam300-advanced-cross-platform-development\Lab Materials\Part 03 Resources\Completed

I would copy the Completed folder into C and end up with much shorter path like: C:\Completed

cd491415
  • 823
  • 2
  • 14
  • 33