Update MDocUpdater.cs (#597)
This commit is contained in:
Родитель
d0f73fe0d6
Коммит
54c3e2fa00
|
@ -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;
|
||||
|
|
Загрузка…
Ссылка в новой задаче