Fix hardcoded test location

This commit is contained in:
cra0zy 2019-11-04 23:57:06 +01:00
parent b97d1fd996
commit 5a179531bb

View file

@ -72,7 +72,7 @@ class GLibrary
// Hacky solution to load libraries on Windows
if (FuncLoader.IsWindows)
{
var assemblyLocation = Path.GetDirectoryName(@"C:\Users\harry\.nuget\packages\glibsharp\3.22.24.47\lib\netstandard2.0\GLibSharp.dll");
var assemblyLocation = Path.GetDirectoryName(typeof(GLibrary).Assembly.Location);
var assemblyVersionDir = Path.GetDirectoryName(Path.GetDirectoryName(assemblyLocation));
var version = Path.GetFileName(assemblyVersionDir);
var gtkdir = Path.Combine(Path.GetDirectoryName(Path.GetDirectoryName(assemblyVersionDir)), "gtksharp");