简体   繁体   English

.NET 3.5应用程序上的.NET Runtime 2.0错误

[英].NET Runtime 2.0 Error on .NET 3.5 application

My colleagues and I have some misunderstandings about the .NET runtime. 我和我的同事对.NET运行时有一些误解。 I've written a WPF application (targeted for 3.5) that randomly crashes, and in the event log, we see .NET Runtime 2.0 Error Reporting as the source. 我编写了一个WPF应用程序(针对3.5),该应用程序随机崩溃,并且在事件日志中,我们将.NET Runtime 2.0错误报告作为源。

Just to confirm: 只是为了确认:

  • 3.5 still runs on the .NET 2.0 Runtime (ie, it's an extension of it), so an application targeting 3.5 will still show .NET Runtime 2.0 as it's error source. 3.5仍可在.NET 2.0 Runtime上运行(即它的扩展),因此,针对3.5的应用程序仍会显示.NET Runtime 2.0作为错误源。
  • When installing .NET 3.5 Framework, there's no way to not install .NET 2.0 along with it. 安装.NET 3.5 Framework时,无法将.NET 2.0与其一起安装。

Am I right? 我对吗?

You are correct. 你是对的。 There are, currently, 4 .NET runtimes (though the last is in beta). 当前,有4个.NET运行时(尽管最后一个是beta)。

  1. 1.0 Runtime, which was very buggy 1.0运行时,这很容易出错
  2. 1.1 Runtime 1.1运行时
  3. 2.0 Runtime, which is used for .NET 2.0, 3.0, 3.5, and 3.5sp1, as well as Silverlight 2.0运行时,用于.NET 2.0、3.0、3.5和3.5sp1以及Silverlight
  4. 4.0 Runtime - In Beta2, and soon to be released with VS 2010 and will be used by .NET 4.0 4.0运行时-在Beta2中,即将与VS 2010一起发布,并将由.NET 4.0使用

There is no way to install .NET 3.5 without the 2.0 runtime, since it uses that runtime, and is based on it. 没有2.0运行时,就无法安装.NET 3.5,因为它使用该运行时并基于该运行时。

您在两点上都是正确的。

Yes, you are right. 是的,你是对的。 The .NET 3.5 Framework runs on .NET 2.0 CLR. .NET 3.5框架在.NET 2.0 CLR上运行。 Essentially the change is new assemblies (and new versions of .NET 2.0 assemblies) and new compilers. 本质上,更改是新程序集(和.NET 2.0程序集的新版本)和新的编译器。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM