We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 168b62f commit 5bfaca5Copy full SHA for 5bfaca5
LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs
@@ -7,7 +7,6 @@
7
using System.Reflection;
8
using System.Text;
9
using System.Text.RegularExpressions;
10
-using LibGit2Sharp.Core;
11
using Xunit;
12
13
namespace LibGit2Sharp.Tests.TestHelpers
@@ -65,7 +64,11 @@ private static void SetUpTestEnvironment()
65
64
66
if (resourcesPath == null)
67
{
+#if NETFRAMEWORK
68
resourcesPath = Path.Combine(Directory.GetParent(new Uri(typeof(BaseFixture).GetTypeInfo().Assembly.CodeBase).LocalPath).FullName, "Resources");
69
+#else
70
+ resourcesPath = Path.Combine(Directory.GetParent(typeof(BaseFixture).GetTypeInfo().Assembly.Location).FullName, "Resources");
71
+#endif
72
}
73
74
ResourcesDirectory = new DirectoryInfo(resourcesPath);
0 commit comments