Skip to content

Commit

Permalink
Fix 32-bit check.
Browse files Browse the repository at this point in the history
Mono.Cecil reports a 4.5 assembly as both 32-bit preferred and required
when they are mutually exclusive.
  • Loading branch information
brutaldev committed Nov 2, 2013
1 parent 87796a1 commit 0b6622f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Brutal.Dev.StrongNameSigner/SigningHelper.cs
Original file line number Diff line number Diff line change
Expand Up @@ -204,7 +204,7 @@ public static AssemblyInfo GetAssemblyInfo(string assemblyPath, Action<string> o
IsSigned = a.MainModule.Attributes.HasFlag(ModuleAttributes.StrongNameSigned),
IsManagedAssembly = a.MainModule.Attributes.HasFlag(ModuleAttributes.ILOnly),
Is64BitOnly = a.MainModule.Architecture == TargetArchitecture.AMD64 || a.MainModule.Architecture == TargetArchitecture.IA64,
Is32BitOnly = a.MainModule.Attributes.HasFlag(ModuleAttributes.Required32Bit),
Is32BitOnly = a.MainModule.Attributes.HasFlag(ModuleAttributes.Required32Bit) && !a.MainModule.Attributes.HasFlag(ModuleAttributes.Preferred32Bit),
Is32BitPreferred = a.MainModule.Attributes.HasFlag(ModuleAttributes.Preferred32Bit)
};
}
Expand Down

0 comments on commit 0b6622f

Please sign in to comment.