NETLink`
NETLink`
InstallNET
Updated in 14.2

launches the .NET runtime and prepares it to be used from the Wolfram Language.
InstallNET[link]
configures .NET/Link to use a manually created link to a .NET runtime.
Details and Options
- To use InstallNET, you first need to load .NET/Link using Needs["NETLink`"].
- Only one .NET runtime is ever launched; subsequent calls to InstallNET after the first have no effect.
- InstallNET works on all platforms, but on Macintosh and Linux systems you need to have either Mono or the .NET runtime installed.
- The following options can be given:
-
"UseNETFramework" Automatic whether to use the .NET Framework (4.x) or the newer .NET 6 and later "MonoPath" Automatic custom path to the Mono runtime, if installed in a nonstandard location "DotnetPath" Automatic custom path to the dotnet runtime, if installed in a nonstandard location "Force32Bit" False whether to run in 32-bit mode (only supported on Windows) - On Windows, the default value of "UseNETFramework"->Automatic will choose the older .NET Framework (version 4.x). Specify "UseNETFramework"->False to launch the modern .NET runtime (.NET 6 and later) instead.
- On Macintosh, the default value of "UseNETFramework"->Automatic will choose the modern .NET runtime (.NET 6 and later). Specify "UseNETFramework"->True to launch Mono (which is the .NET Framework).
- On Linux, the default value of "UseNETFramework"->Automatic will launch Mono (which is the .NET Framework). Use "UseNETFramework"->False to the modern .NET runtime (.NET 6 and later).
Examples
open allclose allBasic Examples (1)Summary of the most common use cases
In[1]:=1

✖
https://wolfram.com/xid/0o7yfwol7lsor-e6lw18
In[2]:=2

✖
https://wolfram.com/xid/0o7yfwol7lsor-i2y7lu
Launch the .NET runtime and prepare it for use:
In[3]:=3

✖
https://wolfram.com/xid/0o7yfwol7lsor-dayify
Out[3]=3

In[4]:=4

✖
https://wolfram.com/xid/0o7yfwol7lsor-cmkrc6
Out[4]=4

In[5]:=5

✖
https://wolfram.com/xid/0o7yfwol7lsor-ejj838
Out[5]=5

Properties & Relations (1)Properties of the function, and connections to other functions
In[1]:=1

✖
https://wolfram.com/xid/0o7yfwol7lsor-52at0
Call ReinstallNET if you want to force the .NET runtime to restart, such as with different options:
In[2]:=2

✖
https://wolfram.com/xid/0o7yfwol7lsor-cslmsk
Out[2]=2

Restart the .NET runtime with a different option:
In[3]:=3

✖
https://wolfram.com/xid/0o7yfwol7lsor-getstf
Out[3]=3
