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 df10a5f commit 7c3a2d4Copy full SHA for 7c3a2d4
Classes/Utils/Helpers.cs
@@ -38,10 +38,15 @@ public static string GetSolutionPath() {
38
while (directory != null && !directory.GetFiles("*.sln").Any()) {
39
directory = directory.Parent;
40
}
41
- if (directory == null) {
+ if (directory != null) {
42
+ return directory.FullName;
43
+ }
44
+ try {
45
return Directory.GetParent(Directory.GetCurrentDirectory()).Parent.Parent.Parent.FullName;
46
- return directory.FullName;
47
+ catch (NullReferenceException) {
48
+ return Directory.GetCurrentDirectory();
49
50
51
#endif
52
public static void PlaySound(string fileName) {
0 commit comments