Skip to content

Instantly share code, notes, and snippets.

@Vatyx
Created March 12, 2021 23:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save Vatyx/92ac9254c2ed2569475e3825dda3e158 to your computer and use it in GitHub Desktop.
Save Vatyx/92ac9254c2ed2569475e3825dda3e158 to your computer and use it in GitHub Desktop.
public static string GetCurrentPathOfProjectWindow()
{
Type projectWindowUtilType = typeof(ProjectWindowUtil);
MethodInfo getActiveFolderPath = projectWindowUtilType.GetMethod("GetActiveFolderPath", BindingFlags.Static | BindingFlags.NonPublic);
object obj = getActiveFolderPath.Invoke(null, new object[0]);
return obj.ToString();
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment