What are the available runtime options for app.config files in .NET?

There is a <runtime> element in the app.config file of the .NET application that allows you to configure various types of CLR behavior, usually for backward compatibility with traditional behavior.

For instance:

 <configuration> <runtime> <legacyUnhandledExceptionPolicy enabled="true"/> <!-- .NET 2 --> <legacyCorruptedStateExceptionsPolicy enabled="true"/> <!-- .NET 4 --> </runtime> </configuration> 

I came across several of these settings and hoped to find comprehensive documentation of all the available settings on MSDN so that I could see what else was available. However, I could not find any central list of all the available runtime configuration options, and the app.config scheme would not help either, since the <runtime> element is listed as "something is coming" (for that, the proof, I think )

Can someone point me to some central documentation, preferably MSDN, which lists all the available parameters for the runtime element in app.config, preferably including .NET 4.0?

+4
source share
1 answer

Well, I find this on MSDN:

<runtime> Element, Framework 1.1

<runtime> Element, Framework 2.0

<runtime> Element, Framework 3.0

<runtime> Element, Framework 3.5

<runtime> Element, Framework 4.0

There is no guarantee that it is completed, and I do not see legacyUnhandledExceptionPolicy anywhere, but I think that it is close to the official one as you are going to receive.

+8
source

Source: https://habr.com/ru/post/1285843/


All Articles