Selezione di .NET Core in MATLAB
MATLAB® supporta il caricamento di questi assiemi .NET:
.NET, compreso .NET Core (Microsoft® Windows®, macOS e Linux®)
Framework .NET (solo Windows)
Per maggiori informazioni, consultare System Requirements for Using MATLAB Interface to .NET. Per informazioni sulle versioni .NET compatibili con MATLAB, vedere MATLAB Interfaces to Other Languages (Interfacce di MATLAB ad altri linguaggi).
Per impostazione predefinita, MATLAB carica gli assiemi utilizzando framework .NET su Microsoft Windows e .NET Core su macOS e Linux. Per selezionare .NET Core su Microsoft Windows, utilizzare la funzione dotnetenv
. Le informazioni sull'ambiente .NET sono persistenti in diverse sessioni di MATLAB.
Per selezionare l'ambiente di runtime di .NET Core, verificare per prima cosa che .NET sia già caricato. Potrebbe dover essere necessario riavviare MATLAB.
e = dotnetenv; if e.Status=="loaded" disp("To change the environment, restart MATLAB then call dotnetenv.") end
Impostare l'ambiente di runtime di .NET alla versione più recente.
e = dotnetenv("core")
e = NETEnvironment with properties: Runtime: core Status: loaded Version: ".NET 7.0.10" RuntimeLocation: "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\7.0.10\"
Funzioni
dotnetenv | Change .NET default environment (Da R2022b) |
Oggetti
NETEnvironment | .NET environment information (Da R2022b) |
Argomenti
- Migrating from .NET Framework to .NET Core
Match .NET API with .NET run-time environment.