Quantcast
Channel: Windows Presentation Foundation (WPF) forum
Viewing all articles
Browse latest Browse all 18858

How to make my .Net 3.5 application run on .Net framework 4.0 environment

$
0
0

Hi,

My application is developed base on .Net framework 3.5, so if i run the app on Win8 or Win8.1 which does not have .Net 3.5 but only have .Net 4.0 or above, i will get a prompt message which said "An app on your PC needs the folllowing Windows Feature:>net framework3.5(includes .Net 2.0 and 3.0)", i have resolved this by adding a configuration file, content as below:

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

But my question is, whether should i put "2.0.50727" or "4.0" as first option, is there any official guideline from MS?


Viewing all articles
Browse latest Browse all 18858

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>