sp00n / corecycler

Script to test single core stability, e.g. for PBO & Curve Optimizer on AMD Ryzen or overclocking/undervolting on Intel processors
Other
663 stars 30 forks source link

core cycler invalid search path specified "%lib%" #65

Open extrifixation opened 3 weeks ago

extrifixation commented 3 weeks ago

at startup, the terminal displays the following error:

Add-Type : (0) : Warning, treated as an error: In "environment variable LIB" -- "The system cannot find the specified path. " invalid search path specified "%lib%" (1) : using System; C:\CoreCycler-v0.9.5.0alpha3\script-corecycler.ps1:593 sign:1

sp00n commented 3 weeks ago

Huh, that's a weird one.

The code block mentioned there is importing some C#/.NET code to try to prevent a shutdown while the script is running, and while importing that code the C# code itself throws this error. I'm not sure what's going on there, it's somehow trying to access an environment variable lib, which isn't mentioned in the code to be imported. 🤷

Do you maybe work with Visual Basic, MSBuild, etc, where this variable would've been set/changed/overridden?

extrifixation commented 3 weeks ago

I've worked in codeblocks and visual studio, I'll try to figure it out.