https://bugzilla.novell.com/show_bug.cgi?id=660570
https://bugzilla.novell.com/show_bug.cgi?id=660570#c0 Summary: mcs.exe cannot reference Rhino.Mocks due to invalid assembly name Classification: Mono Product: Mono: Compilers Version: SVN Platform: x86-64 OS/Version: Ubuntu Status: NEW Severity: Major Priority: P5 - None Component: C# AssignedTo: [email protected] ReportedBy: [email protected] QAContact: [email protected] Found By: --- Blocker: --- User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.2.13) Gecko/20101206 Ubuntu/10.10 (maverick) Firefox/3.6.13 Using mcs.exe from mono/mcs/class/lib/basic I cannot compile an empty source file referencing Rhino.Mocks. Reproducible: Always Steps to Reproduce: > wget http://www.cs.put.poznan.pl/pwysocki/mono/Rhino.Mocks.dll > touch a.cs > gmcs /r:Rhino.Mocks.dll /t:library a.cs Actual Results: Unhandled Exception: System.IO.FileLoadException: The assembly name is invalid. at System.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in <filename unknown>:0 at IKVM.Reflection.AssemblyName..ctor (System.String assemblyName) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Fusion.ParsePublicKey (System.String str, System.String& publicKeyToken) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Fusion.ParseAssemblyName (System.String fullName, IKVM.Reflection.ParsedAssemblyName& parsedName) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Fusion.CompareAssemblyIdentityPure (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Fusion.CompareAssemblyIdentity (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Universe.CompareAssemblyIdentity (System.String assemblyIdentity1, Boolean unified1, System.String assemblyIdentity2, Boolean unified2, IKVM.Reflection.AssemblyComparisonResult& result) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Universe.GetLoadedAssembly (System.String refname) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Universe.Load (System.String refname, IKVM.Reflection.Assembly requestingAssembly, Boolean throwOnError) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Reader.ModuleReader.ResolveAssemblyRefImpl (IKVM.Reflection.Metadata.Record& rec) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Reader.ModuleReader.ResolveAssemblyRef (Int32 index) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Reader.ModuleReader.ResolveType (Int32 metadataToken, IGenericContext context) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Reader.ModuleReader.ResolveType (Int32 metadataToken, IKVM.Reflection.Type[] genericTypeArguments, IKVM.Reflection.Type[] genericMethodArguments) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Module.ResolveType (Int32 metadataToken) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Reader.ModuleReader.GetMemberRef (Int32 index, IKVM.Reflection.Type[] genericTypeArguments, IKVM.Reflection.Type[] genericMethodArguments) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Reader.ModuleReader.ResolveMethod (Int32 metadataToken, IKVM.Reflection.Type[] genericTypeArguments, IKVM.Reflection.Type[] genericMethodArguments) [0x00000] in <filename unknown>:0 at IKVM.Reflection.Module.ResolveMethod (Int32 metadataToken) [0x00000] in <filename unknown>:0 at IKVM.Reflection.CustomAttributeData.get_Constructor () [0x00000] in <filename unknown>:0 at IKVM.Reflection.CustomAttributeData.LazyParseArguments () [0x00000] in <filename unknown>:0 at IKVM.Reflection.CustomAttributeData.get_ConstructorArguments () [0x00000] in <filename unknown>:0 at Mono.CSharp.ImportedAssemblyDefinition.ReadAttributes () [0x00000] in <filename unknown>:0 at Mono.CSharp.MetadataImporter.GetAssemblyDefinition (IKVM.Reflection.Assembly assembly) [0x00000] in <filename unknown>:0 at Mono.CSharp.StaticImporter.ImportAssembly (IKVM.Reflection.Assembly assembly, Mono.CSharp.RootNamespace targetNamespace) [0x00000] in <filename unknown>:0 at Mono.CSharp.StaticLoader.LoadReferences (Mono.CSharp.ModuleContainer module) [0x00000] in <filename unknown>:0 at Mono.CSharp.Driver.Compile () [0x00000] in <filename unknown>:0 at Mono.CSharp.Driver.Main (System.String[] args) [0x00000] in <filename unknown>:0 Expected Results: Build ok git master commit e07dd12e9ff5eab7a323232922f160edfd5469b0 Author: Marek Safar <[email protected]> Date: Mon Dec 20 10:49:39 2010 +0000 -- Configure bugmail: https://bugzilla.novell.com/userprefs.cgi?tab=email ------- You are receiving this mail because: ------- You are the QA contact for the bug. _______________________________________________ mono-bugs maillist - [email protected] http://lists.ximian.com/mailman/listinfo/mono-bugs
