创建在.NET 3.5或4上运行的Windows应用程序

时间:2014-06-05 18:29:07

标签: .net windows

根据.NET docs,通过在配置文件中指定两个CLR运行时,我可以告诉我的应用程序使用.NET 4或.NET 3.5,我需要实现此b / c Windows 7具有.NET 3.5 bulitin,其中Windows 8具有.NET 4。

具体来说我的配置文件是

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

我的应用程序在.NET 3.5和.NET 4上编译良好,但我在生产中使用3.5。当我在Windows 8上运行我的应用程序时,它要求我安装.NET 3.5。不应该配置文件 有没有照顾过这个?该文档是错误的还是我缺少的东西?

我使用Visual Studios 2010来编译我的应用程序。

0 个答案:

没有答案
相关问题