From c459637ebc07c019ef25f255607a9932027fe62f Mon Sep 17 00:00:00 2001 From: bernd Date: Fri, 9 Jan 2026 00:11:13 +0100 Subject: [PATCH] fix data test root --- DataTests/BaseTestRoot.cs | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/DataTests/BaseTestRoot.cs b/DataTests/BaseTestRoot.cs index 85534ab..69b5b43 100644 --- a/DataTests/BaseTestRoot.cs +++ b/DataTests/BaseTestRoot.cs @@ -16,7 +16,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\DataTests\bin\Debug\net8.0 + path = Path.GetFullPath("./../../../.."); + if (!Directory.Exists(path)) + { + path = "/tmp"; // It won't work, but it's somewhere... + } } }