🪟 If you update LibreHardwareMonitorLib.dll in the TrafficMonitor install folder (often done to avoid Windows Defender “vulnerable driver” blocks), you may run into plugin/app startup crashes like:
System.Memory, Version=4.0.5.0 ... could not be foundDiskInfoToolkit, Version=1.1.0.0 ... could not be found
Reason: newer LibreHardwareMonitorLib versions pull additional managed dependencies which are not shipped with TrafficMonitor by default.
By default, you provide LibreHardwareMonitorLib.dll, and the script deploys the missing dependencies it references.
Recommended sources:
-
Official LibreHardwareMonitor releases (recommended)
- Download from: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor/releases
- Extract
LibreHardwareMonitorLib.dllfrom the release archive.
-
Build LibreHardwareMonitor yourself (advanced)
- Clone: https://github.com/LibreHardwareMonitor/LibreHardwareMonitor
- Build the solution and take the produced
LibreHardwareMonitorLib.dllfrom the build output.
Important: copy LibreHardwareMonitorLib.dll into the TrafficMonitor install folder (same folder as TrafficMonitor.exe).
The script expects it at:
<TrafficMonitorDir>\\LibreHardwareMonitorLib.dll
This repo also contains an optional pinned LibreHardwareMonitorLib.dll (AssemblyVersion 0.9.4.0) here:
pinned/LHM_0.9.4/LibreHardwareMonitorLib.dll
If you want the script to copy that pinned DLL into your TrafficMonitor folder first, run:
powershell -NoProfile -ExecutionPolicy Bypass -File .\deploy_tm_deps.ps1 -TrafficMonitorDir "C:\Path\To\TrafficMonitor" -LibreHardwareMonitorLibSource ".\pinned\LHM_0.9.4\LibreHardwareMonitorLib.dll"License for the bundled pinned DLL is included at:
pinned/LHM_0.9.4/LICENSE.LibreHardwareMonitor.txt
These are the typical errors you see when LibreHardwareMonitorLib.dll was updated but the referenced managed dependencies were not deployed into the TrafficMonitor folder yet:
Typical message (DE):
Die Datei oder Assembly "System.Memory, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" oder eine Abhängigkeit davon wurde nicht gefunden.
English:
The file or assembly "System.Memory, Version=4.0.5.0, Culture=neutral, PublicKeyToken=cc7b13ffcd2ddd51" or one of its dependencies could not be found.
Typical message (DE):
Die Datei oder Assembly "DiskInfoToolkit, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null" oder eine Abhängigkeit davon wurde nicht gefunden.
English:
The file or assembly "DiskInfoToolkit, Version=1.1.0.0, Culture=neutral, PublicKeyToken=null" or one of its dependencies could not be found.
The helper script deploy_tm_deps.ps1 was added to:
- detect which assemblies
LibreHardwareMonitorLib.dllreferences - download the matching DLLs from NuGet
- copy them into the TrafficMonitor install folder
- create/update
TrafficMonitor.exe.configwith binding redirects when exact assembly versions are not available via NuGet
The script creates .bak.YYYYMMDDHHmmss backups for any file it overwrites.
Run PowerShell (Administrator may be required if TrafficMonitor is installed under Program Files) and execute.
Replace C:\\Path\\To\\TrafficMonitor with your actual TrafficMonitor install directory.
powershell -NoProfile -ExecutionPolicy Bypass -File .\deploy_tm_deps.ps1 -TrafficMonitorDir "C:\Path\To\TrafficMonitor"Depending on your LibreHardwareMonitorLib.dll version, these can be added:
HidSharp.dllSystem.Memory.dllSystem.Buffers.dllSystem.Numerics.Vectors.dllSystem.Runtime.CompilerServices.Unsafe.dllDiskInfoToolkit.dllBlackSharp.Core.dllRAMSPDToolkit-NDD.dll
and TrafficMonitor.exe.config (binding redirects).

