Backwards Compatibility of .NET Framework 4

前端 未结 3 930
误落风尘
误落风尘 2020-12-08 22:14

We have an WPF Application build on .net framework 3.5.

Some testers find if they uninstall .net framework 3.5, but install .net framework 4.0, our APP fails to laun

3条回答
  •  一整个雨季
    2020-12-08 22:30

    .Net 3.5/2.0 Applications do not automatically run on the .Net 4.0 runtime. You have to specify explicitly for your application that it should run on .Net 4.0 in your App.config by adding:

    
      
         
      
    
    

    In case you have third party components you also have to mark them as being ready for 4.0:

    
       ...
       
          ...
          
             ...
             
                
                
             
             ...
          
          ...
       
       ...
    
    

提交回复
热议问题