diff --git a/UnitTests/BaseTestRoot.cs b/UnitTests/BaseTestRoot.cs index a1c9957..6d240e1 100644 --- a/UnitTests/BaseTestRoot.cs +++ b/UnitTests/BaseTestRoot.cs @@ -14,7 +14,12 @@ public BaseTestRoot() { path = Environment.GetEnvironmentVariable("CSHARP_XMLRESOLVER_ROOT"); if (string.IsNullOrEmpty(path)) { - path = "/tmp"; // It won't work, but it's somewhere... + //the path is for example C:\work\xmlresolvercs\UnitTests\bin\Debug\net8.0 + path = Path.GetFullPath("./../../../.."); + if (!Directory.Exists(path)) + { + path = "/tmp"; // It won't work, but it's somewhere... + } } }