简体   繁体   中英

How to support .NET Framework 3.0 wpf application on the system that has only .NET Framework 4.0 & 4.5?

I have developed an wpf application using .NET Framework 3.0, which runs perfectly on windows 7 system.

Now I want to support my application on windows 10 which supports from .NET Framework 4.0 onward. I have tried configuring app.config file to support .NET Framework 4., but it does not work.

<?xml version="1.0" encoding="utf-8"?>
<configuration>
<startup>
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/>
<supportedRuntime version="v4.0"/>
<supportedRuntime version="v2.0.50727"/>
</configuration>

Try this configuration:

<configuration>
<startup>
  <supportedRuntime version="v2.0.50727" /> 
  <supportedRuntime version="v4.0" /> 
</startup>
</configuration>

Please refer to the following page on MSDN for more information about how to configure a .NET 3/3.5 application to support .NET 4+: https://msdn.microsoft.com/en-us/library/jj152935%28v=vs.110%29.aspx

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM