Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

VS2010 changes resource file references to Version 4.0 although targeting 3.5 Framework

We changed from VS2008 to VS2010 for development. But requirement for the installation of the app is still Framework 3.5. Therefore we target the build to this framework. Everything works fine except an odd behaviour I would like to verify not to be a problem:

If someone edits resources existing entries in the resources.resx and resources.designer.cs change the system.windows.forms entry from 2.0.0.0 to 4.0.0.0. Example:

Before editing:

<assembly alias="System.windows.forms" 
          name="system.windows.forms, Version=2.0.0.0, ...[signature] />

After:

<assembly alias="System.windows.forms" 
          name="system.windows.forms, Version=4.0.0.0, ...[signature] />

This seems to be a reference for ResXFileRef types for Pictures. A line later it says:

<data name="mypic" type="System.Resources.ResXFileRef, System.Windows.Forms">
  <value>[pictureinfomation - referencing System.Drawing version 2.0]</value>
</data>

Running the app does not seem to look for version 4. But I would like to know for sure, that this is not a problem.

Anyone have any thoughts? I have googled quite some time for an answer and did not understand correclty that the ResXFileRef is used for in the Resources mechanism.

Thanks for any hints if my app is still only using 3.5 Versions.

Regards

like image 731
Uwe Hafner Avatar asked Nov 12 '10 12:11

Uwe Hafner


1 Answers

I dont think this is a bug.

Try to compile the application and deploy it and test.

Also get the properties of dll using 'ildasm'and check

like image 64
Sunil Agarwal Avatar answered Nov 17 '22 03:11

Sunil Agarwal