Hello Jeffrey Tan[MSFT],
No, that's not completly true
..NET FW support backward compatibility but it couldn't be guarantee
Only several asseblies are unified in the scope of different .NET FWs
For unification use version policy like this
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<dependentAssembly>
<assemblyIdentity name="System.Xml"
publicKeyToken="b77a5c561934e089" />
<bindingRedirect oldVersion="0.0.0.0-2.0.3600"
newVersion="1.1.5000" />
</dependentAssembly>
</assemblyBinding>
You can set such behaviour for each assembly that you can make unify
J> Hi Dave,
J>
J> Yes, I have tried to use app.config with <supportedRuntime> element
J> to
J> redirect the assembly compiled with VS2005 to use .Net CLR1.1:
J> <?xml version ="1.0"?>
J> <configuration>
J> <startup>
J> <supportedRuntime version="v1.1.4322" />
J> </startup>
J> </configuration>
J> I got a "Strong name validation failed" BadImageFormatException
J> dialog while running this VS2005 exe. I also tried to adding
J> <assemblyBinding> and <bindingRedirect> elements to the app.config
J> file to redirect the referenced assembly binding version, but the
J> BadImageFormatException dialog keeps generating.
J>
J> I have tried to contact our Dev team regarding this issue. Below is
J> their
J> feedback:
J> "You cannot run V2.0 Framework apps on V1.1. There were non-forward
J> compatible changes. This is the intended behavior, v1.1 Framework
J> will run
J> on v2.0 but not vice versa."
J> So it seems that CLR2.0 does not support redirecting the runtime to
J> .Net1.0/1.1 with app.config file.
J>
J> If you have .Net Framework1.1 installed and your C# source code file
J> is compatible with .Net1.1, you may use csc.exe in .Net Framework1.1
J> to compile your project. This should be the simplest workaround.
J>
J> Hope the information helps!
J>
J> Best regards,
J> Jeffrey Tan
J> Microsoft Online Community Support
J> ==================================================
J> When responding to posts, please "Reply to Group" via your newsreader
J> so
J> that others may learn and benefit from your issue.
J> ==================================================
J> This posting is provided "AS IS" with no warranties, and confers no
J> rights.
---
WBR,
Michael Nemtsev :: blog:
http://spaces.msn.com/laflour
"At times one remains faithful to a cause only because its opponents do not
cease to be insipid." (c) Friedrich Nietzsche