Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Change Platform Target on Third Party .NET Assembly

Tags:

.net

clr

How do I change the 'Platform Target' on compiled assemblies without having access to the source?

For this particular instance, I have an compiled, .NET assembly as a DLL that is marked as x86 and I need to change it to AnyCPU.

Why?:

  • Trouble dealing with this issue: http://blogs.msdn.com/b/visualstudio/archive/2010/06/19/resgen-exe-error-an-attempt-was-made-to-load-a-program-with-an-incorrect-format.aspx
  • Trouble with third party providers leaving assemblies on AnyCPU when dependant on x86 libs.
  • Trouble with third party providers leaving assemblies on x86 when platform independant.
like image 493
Nick Whaley Avatar asked Sep 14 '25 23:09

Nick Whaley


1 Answers

You can try with CorFlags utility: http://msdn.microsoft.com/en-us/library/ms164699%28VS.80%29.aspx

like image 78
Felice Pollano Avatar answered Sep 17 '25 18:09

Felice Pollano



Donate For Us

If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!