Migrating from .NET Framework to .NET Core
Since many .NET APIs changed with .NET Core, simply changing your .NET run-time environment
from "framework"
to "core"
might cause errors or
unexpected behavior. For information about the APIs, see https://dotnet.microsoft.com/. There are different versions of .NET
documentation, so be sure to refer to the version that is on your system. See System Requirements for Using MATLAB Interface to .NET for information about version support in MATLAB®.
.NET Core does not support loading assemblies installed in the .NET Global Assembly Cache (GAC). To load a GAC assembly, restart MATLAB then call:
dotnetenv("framework")
Note
There are known limitations for upgrading code from .NET Framework to .NET Core. For more information, refer to https://dotnet.microsoft.com/.
Change to Assembly Support
These assemblies are not part of .NET Core. For up-to-date information, refer to .NET Core documentation.
System.Management
System.ServiceModel.Primitives
System.EnterpriseServices
These assemblies are renamed in .NET Core:
.NET Framework Assembly | .NET Core Assembly |
---|---|
System.Data | System.Data.Common |
System.ServiceModel | System.Security.Cryptography.X509Certificates |
.NET Framework Features Not Supported
.NET Core does not support these features:
Async delegate functions such as
BeginInvoke
andEndInvoke
Async event functions
Loading multi-module assemblies
Loading different assemblies with the same name