I want to change my C# project, which is based on the .NET 4.0 to 3.5.
So I changed the project’s target-framework to 3.5.
After re-opening and trying to compile the project I get the error:
The file or assembly “System.Drawing, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a” or one of its dependencies couldn’t be found. The system can’t find the file.
oder eine Abhängigkeit davon wurde nicht gefunden. Das System kann die angegebene Datei nicht finden.
This happens in the file Resource.resx, which looks like that:
<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>
That reference is pointing to .Net 4 – you need to remove all .net 4 references and then readd them using the .net 3.5 version of the assemly and then it will work
paul