You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: src/code/Utils.cs
+1-1Lines changed: 1 addition & 1 deletion
Original file line number
Diff line number
Diff line change
@@ -1715,7 +1715,7 @@ public static void DeleteDirectory(string dirPath)
1715
1715
if(ex.Message.Contains("The directory is not empty")&&psVersion.StartsWith("5"))
1716
1716
{
1717
1717
// there is a known bug with WindowsPowerShell and OneDrive based module paths, where .NET Directory.Delete() will throw a 'The directory is not empty.' error.
1718
-
thrownewException(string.Format("Cannot uninstall module with OneDrive based path on WindowsPowerShell due to .NET issue. Try installing and uninstalling using PowerShellCore if using OneDrive."),ex);
1718
+
thrownewException(string.Format("Cannot uninstall module with OneDrive based path on Windows PowerShell due to .NET issue. Try installing and uninstalling using PowerShell 7+ if using OneDrive."),ex);
1719
1719
}
1720
1720
1721
1721
thrownewException(string.Format("Access denied to path while deleting path {0}",dirPath),ex);
0 commit comments