是否在.NET Framework 4.0 intaller安装.NET 3.5呢? [英] Does the .NET Framework 4.0 intaller installs .NET 3.5 as well?

查看:145
本文介绍了是否在.NET Framework 4.0 intaller安装.NET 3.5呢?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

.NET 4.0是为了与3.5运行并排侧,将无法运行3.5应用程序,这是使我对有指导我的用户下载.NET 3.5,而不仅仅是最新版本担心。

.NET 4.0 is meant to run side-by-side with 3.5 and won't run 3.5 apps, which is making me worried about having to instruct my users to download .NET 3.5 instead of just "the latest version".

我读过在博客中的4.0安装程序将安装3.5,以及如果它尚未安装,但我不能马上进行测试,有没有人尝试这个还是有来自可靠来源的答案?

I've read in a blog that the 4.0 installer will install 3.5 as well if it's not already installed but I can't test it right now, did anyone try this or have an answer from a trusted source?

推荐答案

我能在.NET 4.0只箱子来测试它,它也不会跑出来的最盒(找不到运行时版本错误),但你的回答让我搜索一下这些配置文件,我找到了一种方法,使其在3.5可用时运行,但回落到4.0。这是code,其他人是否有同样的问题:

I was able to test it in a .NET 4.0 only box and it wouldn't run out-of-the-box (could not find runtime version error) but your answer made me search about those config files and I found a way to make it run on 3.5 when available but fall back to 4.0. This is the code, if anyone else is having the same issue:

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

这篇关于是否在.NET Framework 4.0 intaller安装.NET 3.5呢?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆