We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
2 parents cc56296 + 356d77b commit 8e129e5Copy full SHA for 8e129e5
LibGit2Sharp.Tests/TestHelpers/BaseFixture.cs
@@ -64,9 +64,8 @@ private static void SetUpTestEnvironment()
64
if (resourcesPath == null)
65
{
66
string initialAssemblyParentFolder = Directory.GetParent(new Uri(typeof(BaseFixture).GetTypeInfo().Assembly.CodeBase).LocalPath).FullName;
67
- const string sourceRelativePath = @"../../../../LibGit2Sharp.Tests/Resources";
68
-
69
- resourcesPath = Path.Combine(initialAssemblyParentFolder, sourceRelativePath);
+ int pos = initialAssemblyParentFolder.IndexOf("LibGit2Sharp.Tests");
+ resourcesPath = Path.Combine(initialAssemblyParentFolder.Substring(0, pos), "../LibGit2Sharp.Tests/Resources");
70
}
71
72
ResourcesDirectory = new DirectoryInfo(resourcesPath);
0 commit comments