Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mono/api-doc-tools.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorhaibo zhang <66710086+v-haiboz@users.noreply.github.com>2022-01-27 14:41:15 +0300
committerGitHub <noreply@github.com>2022-01-27 14:41:15 +0300
commit54c3e2fa00e96147512d012aff5963ce17e462ed (patch)
tree840344eddb08e6f946224732b3f41a1485c912d4
parentd0f73fe0d6f5b9ad2d2125620f5909369bcf4ef6 (diff)
Update MDocUpdater.cs (#597)
-rw-r--r--mdoc/Mono.Documentation/MDocUpdater.cs2
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;