简体   繁体   中英

.NET Runtime 2.0 Error on .NET 3.5 application

My colleagues and I have some misunderstandings about the .NET runtime. 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.

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.
  • When installing .NET 3.5 Framework, there's no way to not install .NET 2.0 along with it.

Am I right?

You are correct. There are, currently, 4 .NET runtimes (though the last is in beta).

  1. 1.0 Runtime, which was very buggy
  2. 1.1 Runtime
  3. 2.0 Runtime, which is used for .NET 2.0, 3.0, 3.5, and 3.5sp1, as well as Silverlight
  4. 4.0 Runtime - In Beta2, and soon to be released with VS 2010 and will be used by .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.

您在两点上都是正确的。

Yes, you are right. The .NET 3.5 Framework runs on .NET 2.0 CLR. Essentially the change is new assemblies (and new versions of .NET 2.0 assemblies) and new compilers.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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