diff options
author | haibo zhang <66710086+v-haiboz@users.noreply.github.com> | 2022-01-27 14:41:15 +0300 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-01-27 14:41:15 +0300 |
commit | 54c3e2fa00e96147512d012aff5963ce17e462ed (patch) | |
tree | 840344eddb08e6f946224732b3f41a1485c912d4 | |
parent | d0f73fe0d6f5b9ad2d2125620f5909369bcf4ef6 (diff) |
Update MDocUpdater.cs (#597)
-rw-r--r-- | mdoc/Mono.Documentation/MDocUpdater.cs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/mdoc/Mono.Documentation/MDocUpdater.cs b/mdoc/Mono.Documentation/MDocUpdater.cs index 35d17843..c1c9b61f 100644 --- a/mdoc/Mono.Documentation/MDocUpdater.cs +++ b/mdoc/Mono.Documentation/MDocUpdater.cs @@ -1418,7 +1418,7 @@ namespace Mono.Documentation private static TextWriter OpenWrite (string path, FileMode mode) { - var fs = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) ? QuickIOFile.Open(Path.GetFullPath(path), mode) : new FileStream(path, mode); + var fs = RuntimeInformation.IsOSPlatform(OSPlatform.Windows) && Path.GetFullPath(path).Length>=260 ? QuickIOFile.Open(Path.GetFullPath(path), mode) : new FileStream(path, mode); var w = new StreamWriter (fs, new UTF8Encoding (false)); w.NewLine = "\n"; return w; |