Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
LINQPad snippet for debugging assembly load problems
foreach (var assembly in assemblies) {
Console.WriteLine("Assembly: {0}", assembly);
Console.WriteLine("Framework: {0}", ((System.Runtime.Versioning.TargetFrameworkAttribute)Assembly.LoadFrom(assembly).GetCustomAttributes(typeof(System.Runtime.Versioning.TargetFrameworkAttribute)).First()).FrameworkDisplayName);
Console.WriteLine("Runtime: {0}", Assembly.LoadFrom(assembly).ImageRuntimeVersion);
Console.WriteLine("Architecture: {0}", AssemblyName.GetAssemblyName(assembly).ProcessorArchitecture);
Console.WriteLine();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.