# NETEnvironment

.NET environment information

## Description

`NETEnvironment` objects contain information about the settings and status of the .NET environment. The .NET environment information is persistent across different MATLAB® sessions.

## Creation

To create a `NETEnvironment` object or change the settings, call `dotnetenv`. You cannot change the run-time after MATLAB loads the environment. To change the environment, restart MATLAB, and then call `dotnetenv`.

## Properties

expand all

.NET run-time environment, specified as `framework` or `core`.

Example: `core`

Process status, specified as `loaded` or `notloaded`.

Example: `loaded`

.NET version, specified as a read-only string. This information is available after the run-time is loaded. If the value is `""`, then `Status` is `notloaded`.

Example: `".NET 5.0.7"`

Data Types: `string`

Folder for run-time environment, specified as a read-only string. This information is available after the run-time is loaded. If the value is `""`, then `Status` is `notloaded`.

Example: ```"C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.16\"```

Data Types: `string`

## Version History

Introduced in R2022b