NETLink`
NETLink`

ReinstallNET

ReinstallNET[]

is a convenience function that calls UninstallNET[] and then InstallNET[].

Details and Options

  • To use ReinstallNET, you first need to load .NET/Link using Needs["NETLink`"].
  • ReinstallNET works on all platforms, but on Macintosh and Linux systems you need to have either Mono or the .NET runtime installed.
  • The primary use for ReinstallNET is to force the .NET runtime to restart with a different set of options.
  • The following options can be given:
  • "UseNETFramework"Automaticwhether to use the .NET Framework (4.x) or the newer .NET 6 and later
    "MonoPath"Automaticcustom path to the Mono runtime, if installed in a nonstandard location
    "DotnetPath"Automaticcustom path to the dotnet runtime, if installed in a nonstandard location
    "Force32Bit"Falsewhether 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).