C# script component .NET requirements vary between machines

Hi all,

I’m using C# script components in my Grasshopper code (Rhino8 SR12) that make use of .NET features such as Regex or XML.

They work fine on my computer, but when I share the script with colleagues (who have a similar machine, OS and Rhino installation) the components give errors that can only be fixed by specifying the full path to the assemblies in each C# scripts component, e.g.:

#r "C:\Windows\Microsoft.NET\assembly\GAC_MSIL\netstandard\v4.0_2.0.0.0__cc7b13ffcd2ddd51\netstandard.dll"
#r "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.dll"
#r "C:\Windows\Microsoft.NET\Framework\v4.0.30319\System.XML.dll"

Would you know what could cause this difference in behaviour?
I find it highly unpractical to have no assurance that Grasshopper scripts that work fine for me, will also work for others.

Thanks for the help!

EDIT: More info on the errors: