Bug 15347 - AssemblyName.ProcessorArchitecture always returns "None"
Summary: AssemblyName.ProcessorArchitecture always returns "None"
Alias: None
Product: Runtime
Classification: Mono
Component: Reflection ()
Version: 3.2.x
Hardware: PC Windows
: --- normal
Target Milestone: ---
Assignee: Bugzilla
Depends on:
Reported: 2013-10-11 03:43 UTC by David Schmitt
Modified: 2013-10-17 05:53 UTC (History)
4 users (show)

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 on GitHub or Developer Community 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:

Description David Schmitt 2013-10-11 03:43:55 UTC
Assembly.ReflectionOnlyLoadFrom("FileName").GetName().ProcessorArchitecture always returns None when it should return the target architecture of the specified assembly.
Comment 1 Marek Safar 2013-10-16 14:43:52 UTC
-> runtime

using System.Reflection;
using System;

public class Test
	public static int Main()
		Console.WriteLine (Assembly.ReflectionOnlyLoadFrom(typeof (Test).Assembly.ManifestModule.Name).GetName().ProcessorArchitecture);

		return 0;

The value is not correctly copied (probably in parse_assembly_directory_name)
Comment 2 Zoltan Varga 2013-10-17 05:53:41 UTC
Fixed in master.