The file (or assembly) cannot be found after changing the target .NET.NET platform from 4.0 to 3.5

I want to change my C # project based on .NET 4.0 to 3.5. Therefore, I changed the target structure of the project to 3.5.

After re-opening and trying to compile the project, I get an error message:

File or assembly "System.Drawing, Version = 4.0.0.0, Culture = neutral, PublicKeyToken = b03f5f7f11d50a3a" or one of its dependencies was not found. The system cannot find the file. oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.

This happens in the Resource.resx file, which looks like this:

<assembly alias="System.Windows.Forms" name="System.Windows.Forms, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089" />
    <data name="traktor_connected" type="System.Resources.ResXFileRef, System.Windows.Forms">
        <value>..\Resources\traktor_connected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    </data>
    <data name="traktor_not_connected" type="System.Resources.ResXFileRef, System.Windows.Forms">
        <value>..\Resources\traktor-not-connected.png;System.Drawing.Bitmap, System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a</value>
    </data>
+3
source share
3 answers

.Net 4 - .net 4 , , .net 3.5,

+5

. , # Microsoft.CSharp. , System.Drawing .resx. , , .NET( ), kaboom, ..NET Outlook.

. , .resx , , . .resx, "" . 4.0.0.0 2.0.0.0.

, , , ImageList, , .resx . blob base64 .resx. , BinaryFormatter. , VS . , base64 [], 0x34 0x32 base64, , :) .

+5

, COM- NET 4.5, NET 4.0. .

.

* . , 64- . *

http://forums.arcgis.com/threads/19335-COM-Exception-was-unhandled-and-Class-not-registered

NET 4.0 - 32 , x86 . .

0

Source: https://habr.com/ru/post/1764689/


All Articles