Visual Studio: 32bit to 64bit causes not valid win32 application resx

There is a (small???) bug in Visual Studio 2010 RESX generator:

when try compile a 32bit application on a 64bit system, if you have an ImageList control within your form, you may get a non-very-clear error in a form's resx file and project wont compile.

The problem is related to the base64 string generated by Visual Studio on 64bit systems.

If you double-click on error, it should go somewhere near the ImageList control string. To fix it just change manually


<data name="ImageList1.ImageStream" 
      mimetype="application/x-microsoft.net.object.binary.base64">
<value>
   AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj00LjAuMC4w

to


<data name="ImageList1.ImageStream" 
      mimetype="application/x-microsoft.net.object.binary.base64">
<value>
   AAEAAAD/////AQAAAAAAAAAMAgAAAFdTeXN0ZW0uV2luZG93cy5Gb3JtcywgVmVyc2lvbj0yLjAuMC4w



this should fix the error and let you compile the project!
Unluckily the problem will came again and again each time you will change something in the form.

Hope Microsoft's guys will provide a fix soon.

Here the discussion.

Commenti

Post più popolari