We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents 3b77c0e + 9ee2f67 commit cebd164Copy full SHA for cebd164
1 file changed
UnitTests/BaseTestRoot.cs
@@ -14,7 +14,12 @@ public BaseTestRoot() {
14
path = Environment.GetEnvironmentVariable("CSHARP_XMLRESOLVER_ROOT");
15
if (string.IsNullOrEmpty(path))
16
{
17
- path = "/tmp"; // It won't work, but it's somewhere...
+ //the path is for example C:\work\xmlresolvercs\UnitTests\bin\Debug\net8.0
18
+ path = Path.GetFullPath("./../../../..");
19
+ if (!Directory.Exists(path))
20
+ {
21
+ path = "/tmp"; // It won't work, but it's somewhere...
22
+ }
23
}
24
25
0 commit comments