Selecting .NET Core in MATLAB
Selecting the .NET 5 and higher run-time environment
MATLAB® supports loading libraries compiled for .NET 5 and higher, .NET Core, and the Microsoft® .NET Framework on the Microsoft Windows® platform only. For details, see System Requirements for Using MATLAB Interface to .NET. For information about .NET versions compatible with MATLAB, see MATLAB Interfaces to Other Languages.
By default, the run-time environment is set to use the Microsoft .NET Framework. To change the environment, use the
function. The .NET environment information is persistent across different MATLAB sessions.
To select the .NET Core run-time environment, type:
ne = dotnetenv("core")
ne = NETEnvironment with properties: Runtime: core Status: loadedVersion: ".NET 5.0.12" RuntimeLocation: "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\5.0.12\"
|Change .NET default environment on Microsoft Windows platforms|
|.NET environment information|
- Migrating from .NET Framework to .NET Core
Match .NET API with .NET run-time environment.