From 9ee2f67b0f87d3aa7dc9886600c3b7abee0188a1 Mon Sep 17 00:00:00 2001 From: bernd Date: Fri, 9 Jan 2026 00:59:43 +0100 Subject: [PATCH] fix test path --- UnitTests/BaseTestRoot.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) 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... + } } }