Bug 61109 - MM0000 on incorrect path
Summary: MM0000 on incorrect path
Status: CONFIRMED
Alias: None
Product: Xamarin.Mac
Classification: Desktop
Component: mmp ()
Version: Master
Hardware: PC Mac OS
: Normal minor
Target Milestone: 15.7
Assignee: Bugzilla
URL:
Depends on:
Blocks:
 
Reported: 2017-12-15 18:42 UTC by Sebastien Pouliot
Modified: 2017-12-15 18:56 UTC (History)
2 users (show)

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

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 for Bug 61109 on Developer Community or GitHub if you have new information to add and do not yet see a matching new report.

If the latest results still closely match this report, you can use the original description:

  • Export the original title and description: Developer Community HTML or GitHub Markdown
  • Copy the title and description into the new report. Adjust them to be up-to-date if needed.
  • Add your new information.

In special cases on GitHub you might also want the comments: GitHub Markdown with public comments

Related Links:
Status:
CONFIRMED

Description Sebastien Pouliot 2017-12-15 18:42:50 UTC
This should give a proper error, something is missing a validation

Sebastiens-iMac:Xamarin.MMP.Tests.MMPTests.RunMMPTest11 poupou$ /Library/Frameworks/Xamarin.Mac.framework/Versions/Current/bin/mmp /verbose /output:bin/Debug/ /name:UnifiedExample /profile:Xamarin.Mac,Version=v2.0,Profile=Mobile /arch:x86_64 --http-message-handler=HttpClientHandler /minos=10.7 /linksdkonly /assembly:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/System.dll /assembly:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/System.Core.dll /assembly:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/Xamarin.Mac.dll /assembly:b.dll /assembly:/Library/Frameworks/Xamarin.Mac.framework/Versions/Current/lib/mono/Xamarin.Mac/mscorlib.dll /assembly:b.dll /root-assembly:bin/Debug/UnifiedExample.exe /sdkroot:/Applications/Xcode92.app/Contents/Developer --cache:obj/Debug/mmp-cache
Xamarin.Mac 4.1.0.540 (master: 37683f77)
Selected target framework: Xamarin.Mac,Version=v2.0,Profile=Mobile; API: Unified
Defaulting registrar to 'Static'
error MM0000: Unexpected error - Please file a bug report at http://bugzilla.xamarin.com
System.ArgumentException: The specified path is not of a legal form (empty).
  at System.IO.Path.InsecureGetFullPath (System.String path) [0x00212] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/Path.cs:425 
  at System.IO.Path.GetFullPathInternal (System.String path) [0x00000] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/corlib/System.IO/Path.cs:297 
  at System.IO.FileSystemEnumerableIterator`1[TSource]..ctor (System.String path, System.String originalUserPath, System.String searchPattern, System.IO.SearchOption searchOption, System.IO.SearchResultHandler`1[TSource] resultHandler, System.Boolean checkHost) [0x00038] in <4656b2b94f914437bce672312dd9e44b>:0 
  at System.IO.FileSystemEnumerableFactory.CreateFileNameIterator (System.String path, System.String originalUserPath, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00009] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/filesystemenumerable.cs:48 
  at System.IO.Directory.InternalGetFileDirectoryNames (System.String path, System.String userPathOriginal, System.String searchPattern, System.Boolean includeFiles, System.Boolean includeDirs, System.IO.SearchOption searchOption, System.Boolean checkHost) [0x00000] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/directory.cs:834 
  at System.IO.Directory.InternalGetDirectories (System.String path, System.String searchPattern, System.IO.SearchOption searchOption) [0x00000] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/directory.cs:724 
  at System.IO.Directory.GetDirectories (System.String path) [0x0000e] in /Users/builder/data/lanes/5533/mono-mac-sdk/external/bockbuild/builds/mono-x64/mcs/class/referencesource/mscorlib/system/io/directory.cs:676 
  at Xamarin.Bundler.Assembly.ComputeSatellites () [0x00024] in /Users/poupou/git/xamarin/xamarin-macios/tools/common/Assembly.cs:468 
  at Xamarin.Bundler.Driver.ProcessAssemblyReferences (Mono.Cecil.AssemblyDefinition assembly) [0x00046] in /Users/poupou/git/xamarin/xamarin-macios/tools/mmp/driver.cs:1899 
  at Xamarin.Bundler.Driver.GatherAssemblies () [0x0001f] in /Users/poupou/git/xamarin/xamarin-macios/tools/mmp/driver.cs:1881 
  at Xamarin.Bundler.Driver.Pack (System.Collections.Generic.IList`1[T] unprocessed) [0x00460] in /Users/poupou/git/xamarin/xamarin-macios/tools/mmp/driver.cs:780 
  at Xamarin.Bundler.Driver.Main2 (System.String[] args) [0x0105b] in /Users/poupou/git/xamarin/xamarin-macios/tools/mmp/driver.cs:514 
  at Xamarin.Bundler.Driver.Main (System.String[] args) [0x00015] in /Users/poupou/git/xamarin/xamarin-macios/tools/mmp/driver.cs:220
Comment 1 Sebastien Pouliot 2017-12-15 18:51:00 UTC
`/assembly:b.dll` where b.dll exists in the current directory cause the issue

l
total 48
-rw-r--r--  1 poupou  staff   965 27 May  2016 Info.plist
-rw-r--r--  1 poupou  staff   194 15 Dec 13:33 Main.cs
-rw-r--r--  1 poupou  staff  1924 15 Dec 13:33 UnifiedExample.csproj
-rw-r--r--  1 poupou  staff    18 15 Dec 13:33 b.cs
-r-xr-xr-x  1 poupou  staff  3072 15 Dec 13:33 b.dll
-r--r--r--  1 poupou  staff   315 15 Dec 13:33 b.dll.mdb
drwxr-xr-x  3 poupou  staff   102 15 Dec 13:33 bin
drwxr-xr-x  3 poupou  staff   102 15 Dec 13:33 obj
Comment 2 Sebastien Pouliot 2017-12-15 18:51:52 UTC
using `/assembly:./b.dll` is fine
Comment 3 Chris Hamons 2017-12-15 18:56:22 UTC
Nice detective work.