App config file - Different .net versions

  • Thread starter Thread starter todomati
  • Start date Start date
T

todomati

Guest
Hi Together.

I have a question concerning differnet .net versions compatibility.

I compiled my application with .net 4.5 and configured app config as follows.


<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup useLegacyV2RuntimeActivationPolicy="true">
<supportedRuntime version="v4.0"/>
<supportedRuntime version="v2.0.50727"/>
</startup>

</configuration>

If i run the app on the Computers which has .net 4. it is working.

But if i run it on Computers with .net 3.5 i get error messge that i need to install 4.xxx Version.

What am i doing wrong and is it possible to make application compatible for differen .net versions without compiling it in differen

.net versions?


Thanks in advance for your answer.

Continue reading...
 
Back
Top