Why does R # tell me “Cannot resolve System.Drawing assembly” when I refer to System.Drawing?

When I run “Check for code problems in the solution”, R # tells me “Cannot resolve the System.Drawing assembly” and points to this xml line in the * .resx file:

<assembly alias="System.Drawing" name="System.Drawing, Version=2.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a" />

I looked at my System.Drawing assembly in my list of link projects. This is version 3.5.0.0, not 2.0.0.0, so I changed the version number in xaml in the .resx file from 2.0 to 3.5. However, this still caused the same warning from R #.

So then I thought it was a PublicKeyToken that was the culprit; so I changed this value from "b03f5f7f11d50a3a" to "969db8053d3322ac" (as found here ); but then the project will not even be built; I got:

Invalid Resx file. The located assembly manifest definition does not match the assembly reference.

Although these “problems” exist, the application seems to be working fine - the image that follows the assembly alias:

<data name="pictureBox1.Image" type="System.Drawing.Bitmap, System.Drawing" mimetype="application/x-microsoft.net.object.bytearray.base64">
    <value>
        blee blah bloo
</value>
  </data>

... is displayed normally.

However, when R # raises a finger, it makes me nervous; how can i fix this flask?

NOTE . This is a Visual Studio 2008 Windows CE / Compact Framework application.

+4
source share
1 answer

I had a similar problem in a resx file in one of my C # projects:

enter image description here

(System.Windows.Forms ..) - - :

+2

All Articles