Selezione di .NET Core in MATLAB
MATLAB® supporta il caricamento di librerie compilate per .NET, incluso .NET Core e il framework Microsoft® .NET solo sulla piattaforma Microsoft 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, l'ambiente di runtime è impostato per utilizzare il framework Microsoft .NET. Per modificare l'ambiente, 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, digitare:
netDate = System.DateTime.Now; % Load .NET ne = dotnetenv("core")
ne = NETEnvironment with properties: Runtime: core Status: loaded Version: ".NET 6.0.25" RuntimeLocation: "C:\Program Files\dotnet\shared\Microsoft.NETCore.App\6.0.25\"
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.