gpt4 book ai didi

c# - App.config 中的 .NET SupportedRuntime

转载 作者:太空狗 更新时间:2023-10-29 17:36:10 25 4
gpt4 key购买 nike

我正在编译一个以 .NET 3.5 作为运行时的 C# 应用程序

在我指定的 app.config 中,根据 http://msdn.microsoft.com/en-us/library/w4atty68.aspx 推荐的支持 3.5 的版本标签

如果我将 .NET 2.0 指定为 SupportedRuntime,如果计算机没有 .NET 3.5 版本会怎样?

干杯斯科特

最佳答案

3.5 版基本上是 CLR 的 2.0 版。无论您定义什么,如果您在只有 2.0 版的机器上使用 .NET 3.5 或 3.0 的任何功能,您都会收到错误消息。

2.0、3.0、3.5 和 3.5 SP1 的版本值相同:

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

关于c# - App.config 中的 .NET SupportedRuntime,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/5108957/

25 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com