- c - 在位数组中找到第一个零
- linux - Unix 显示有关匹配两种模式之一的文件的信息
- 正则表达式替换多个文件
- linux - 隐藏来自 xtrace 的命令
我正在编译一个以 .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/
假设我有一个使用 VS2008 针对 .NET 2.0 构建和编译的 WinForms 应用程序。 据我了解,在运行时,应用程序将首先尝试加载 .NET 2.0 CLR,(因为它是针对它编译的),不管
首先,我发现了一些关于这个主题的问题,但似乎没有一个能完全解决我的问题,但如果您认为它确实回答了我的问题,请随时指出现有问题。 我的问题:我正在构建依赖于 .NET Framework 3.5 或更高
以下三种场景(在exe的app.config文件中)有什么区别? 我已经阅读了有关它的 MS 文档和一些博客,但我仍然不太清楚究竟发生了什么以及何时使用。 编
我需要将仅包含受支持的运行时设置的 app.config 文件嵌入到我的 exe 文件中。我尝试执行构建操作嵌入式资源,但它现在不从配置文件中读取值并且它不起作用。这是我的配置文件:
我正在编译一个以 .NET 3.5 作为运行时的 C# 应用程序 在我指定的 app.config 中,根据 http://msdn.microsoft.com/en-us/library/w4att
我为 Outlook 2007 创建了一个 VSTO 2.0 SE 加载项。通常,它在最终用户的计算机上安装没有问题,但有时他们在 Outlook.exe 旁边有一个 Outlook.exe.conf
我们有一个支持 .NET 2.0 和 .NET 4.0 的应用程序,我们用 切换了几个依赖于框架的程序集。 .我们使用了 元素以允许应用程序使用最新的框架(如果可用)运行。但是,我们仍然需要完整的配
我有一个 WinForms 应用程序,只需 .exe 文件即可轻松部署。它使用框架 2.0,因此默认情况下它不能在 Windows 8 上运行。如果我包含一个具有以下参数的 .config 文件,它在
我有一个应用程序可以在 .Net 2.0 SP2 上正常运行,但无法在 .NET 2.0 RTM 上正常运行。 (仅供引用:调用托管 DLL 的方法时失败,该 DLL 是用于 USB 编程的 nati
我是一名优秀的程序员,十分优秀!