J said:
Hi Peter
Thanks for that. I could not find any trget setting for .NET version.
How do you configure a specific assembly version requirement? How do I
know which version the IDE or program is actually using? Or am I way
off the mark here?
I doubt for your purposes you need to specify a specific .NET version.
However, if you wanted to do it in VS2005, you would select the specific
assembly in the References section of the project, right-click and
choose the Properties menu item (if the property inspector is not
already open), and then in the property inspector, set the version
number and the "exact version" setting to "true" (I forget the exact
name of the property, but it's something obvious like that).
Note that between .NET 2.0 and .NET 3.5 there's not really any
significant difference between the versions. Most of the assemblies are
actually unchanged, and for those that have changed, the changes are
mainly bug fixes. Usually people target a specific version if they
require v1.1, as it's the changeover from 1.1 to 2.0 that had a number
of "breaking changes" (that is, changes in .NET that would cause code
that used to work in 1.1 to no longer work in 2.0).
Since then, .NET has been good about being backward compatible from
version to version (for assemblies that have changed at all…obviously
for those that haven't, backward compatibility is trivial
![Smile :) :)](/styles/default/custom/smilies/smile.gif)
).
Pete