#readwise
# Runtime Configuration File

## Metadata
- Author: [[docs.microsoft.com]]
- Full Title: Runtime Configuration File
- URL: https://github.com/dotnet/sdk/blob/main/documentation/specs/runtime-configuration-file.md
## Highlights
- The runtime configuration files store the dependencies of an application (formerly stored in the .deps file). They also include runtime configuration options, such as the Garbage Collector mode. Optionally they can also include data for runtime compilation (compilation settings used to compile the original application, and reference assemblies used by the application).
- There are two runtime configuration files for a particular application. Given a project named MyApp, the compilation process produces the following files (on Windows, other platforms are similar):
- MyApp.runtimeconfig.json - An optional configuration file containing runtime configuration settings. This file is required for framework-dependent applications, but not for self-contained apps.
- MyApp.runtimeconfig.dev.json - An optional configuration file containing runtime configuration settings that typically only exists in a non-published output and thus is used for development-time scenarios. This file typically specifies additional probing paths. Depending on the semantics of each setting, the setting is either combined with or overridden by the values from MyApp.runtimeconfig.json.
- MyApp.deps.json - A list of dependencies, compilation dependencies and version information used to address assembly conflicts. Not technically required, but required to use the servicing or package cache/shared package install features, and to assist during roll-forward scenarios to select the newest version of any assembly that exists more than once in the application and framework(s). If the file is not present, all assemblies in the current folder are used instead.
- The MyApp.runtimeconfig.json is designed to be user-editable (in the case of an app consumer wanting to change various CLR runtime options for an app, much like the MyApp.exe.config XML file works in .NET 4.x today). However, the MyApp.deps.json file is designed to be processed by automated tools and should not be user-edited.