Bug 4822 - ResolveLibraryProjectImports can't find assembly with HintPath
Summary: ResolveLibraryProjectImports can't find assembly with HintPath
Status: RESOLVED FIXED
Alias: None
Product: Android
Classification: Xamarin
Component: MSBuild ()
Version: 4.0
Hardware: PC Mac OS
: --- normal
Target Milestone: ---
Assignee: Atsushi Eno
URL:
Depends on:
Blocks:
 
Reported: 2012-05-02 10:28 UTC by Jonathan Pryor
Modified: 2012-05-04 06:28 UTC (History)
5 users (show)

Tags:
Is this bug a regression?: ---
Last known good build:


Attachments
Scratch.Zip.zip (151.60 KB, application/zip)
2012-05-02 10:28 UTC, Jonathan Pryor
Details


Notice (2018-05-24): bugzilla.xamarin.com is now in read-only mode.

Please join us on Visual Studio Developer Community and in the Xamarin and Mono organizations on GitHub to continue tracking issues. Bugzilla will remain available for reference in read-only mode. We will continue to work on open Bugzilla bugs, copy them to the new locations as needed for follow-up, and add the new items under Related Links.

Our sincere thanks to everyone who has contributed on this bug tracker over the years. Thanks also for your understanding as we make these adjustments and improvements for the future.


Please create a new report on Developer Community or GitHub with your current version information, steps to reproduce, and relevant error messages or log files if you are hitting an issue that looks similar to this resolved bug and you do not yet see a matching new report.

Related Links:
Status:
RESOLVED FIXED

Description Jonathan Pryor 2012-05-02 10:28:13 UTC
Created attachment 1793 [details]
Scratch.Zip.zip

The ResolveLibraryProjectImports task can't find assembly references which are present in the project file with a hint path.

To reproduce:

    unzip Scratch.Zip.zip
    cd Scratch.Zip
    xbuild /t:SignAndroidPackage *.zip

Expected results: No error, and a bin/Debug/Scratch.Zip-Signed.apk file.

Actual results:

>	Task "ResolveLibraryProjectImports"
>		Using task ResolveLibraryProjectImports from Xamarin.Android.Tasks.ResolveLibraryProjectImports, Novell.MonoDroid.Build.Tasks, Version=1.0.0.0, Culture=neutral, PublicKeyToken=null
>		ResolveLibraryProjectImports Task
>		  OutputDirectory: obj/Debug/
>		  Assemblies: 
>		    System
>		    System.Xml
>		    System.Core
>		    Mono.Android
>		    Ionic.Zip
>/Users/jon/Development/xamarin/monodroid/tools/msbuild/build/Novell/Novell.MonoDroid.Common.targets: error : Error executing task ResolveLibraryProjectImports: Could not load assembly 'Ionic.Zip, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?
>		Error executing task ResolveLibraryProjectImports: System.IO.FileNotFoundException: Could not load assembly 'Ionic.Zip, Version=, Culture=neutral, PublicKeyToken=null'. Perhaps it doesn't exist in the Mono for Android profile?
>		File name: 'Ionic.Zip.dll'
>		  at Monodroid.Tuner.MonoDroidResolver.Resolve (Mono.Cecil.AssemblyNameReference reference, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
>		  at Monodroid.Tuner.MonoDroidResolver.Resolve (System.String fullName, Mono.Cecil.ReaderParameters parameters) [0x00000] in <filename unknown>:0 
>		  at Monodroid.Tuner.MonoDroidResolver.Resolve (System.String fullName) [0x00000] in <filename unknown>:0 
>		  at Monodroid.Tuner.MonoDroidResolver.GetAssembly (System.String fileName) [0x00000] in <filename unknown>:0 
>		  at Xamarin.Android.Tasks.ResolveLibraryProjectImports.Execute () [0x00000] in <filename unknown>:0 
>		  at Microsoft.Build.BuildEngine.TaskEngine.Execute () [0x00000] in <filename unknown>:0 
>		  at Microsoft.Build.BuildEngine.BuildTask.Execute () [0x00000] in <filename unknown>:0 
>	Task "ResolveLibraryProjectImports" execution -- FAILED
Comment 2 Jonathan Pobst 2012-05-02 11:21:56 UTC
Fixed for 4.2.

7db67b8d174de0ec159a84522fd68be5e6a93c02