auto search sln
41c95ab2f9b961f4d4f753e7cc224ad9e7bb2143
2 files changed
GrokCatter/Form1.csGrokCatter/GrokCatter.csproj
diff --git a/GrokCatter/Form1.cs b/GrokCatter/Form1.cs
index 5a0478a..f5e810b 100644
--- a/GrokCatter/Form1.cs
+++ b/GrokCatter/Form1.cs
@@ -1,6 +1,5 @@
-using EnvDTE80;
+
using System.Diagnostics;
-using System.Runtime.InteropServices;
using System.Text;
using System.Text.Json;
using System.Text.RegularExpressions;
@@ -64,7 +63,7 @@ namespace GrokCatter
if (arg.EndsWith(".sln", StringComparison.OrdinalIgnoreCase) && File.Exists(arg))
{
Console.WriteLine($"Oplossingspad gevonden: {arg}");
- return arg;
+ return Path.GetDirectoryName( arg);
}
}
}
diff --git a/GrokCatter/GrokCatter.csproj b/GrokCatter/GrokCatter.csproj
index e6feb75..f88b78e 100644
--- a/GrokCatter/GrokCatter.csproj
+++ b/GrokCatter/GrokCatter.csproj
@@ -9,7 +9,7 @@
</PropertyGroup>
<ItemGroup>
- <PackageReference Include="Microsoft.VisualStudio.SDK" Version="17.14.40265" />
+ <PackageReference Include="System.Management" Version="8.0.0" />
</ItemGroup>
<ItemGroup>