Browse Source

Fix #1225: Increase file name length limit, and opt into Win10 long path support.

pull/1243/head
Daniel Grunwald 7 years ago
parent
commit
f1d5f9d7ec
  1. 4
      ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs
  2. 3
      ILSpy/Properties/app.config.template
  3. 3
      ILSpy/app.manifest

4
ICSharpCode.Decompiler/CSharp/WholeProjectDecompiler.cs

@ -463,8 +463,8 @@ namespace ICSharpCode.Decompiler.CSharp
b.Append('.'); // allow dot, but never two in a row b.Append('.'); // allow dot, but never two in a row
else else
b.Append('-'); b.Append('-');
if (b.Length >= 64) if (b.Length >= 200)
break; // limit to 64 chars break; // limit to 200 chars
} }
if (b.Length == 0) if (b.Length == 0)
b.Append('-'); b.Append('-');

3
ILSpy/Properties/app.config.template

@ -4,8 +4,7 @@
<supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" /> <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.6" />
</startup> </startup>
<runtime> <runtime>
<AppContextSwitchOverrides value="Switch.System.Windows.DoNotScaleForDpiChanges=false" /> <AppContextSwitchOverrides value="Switch.System.Windows.DoNotScaleForDpiChanges=false;Switch.System.IO.UseLegacyPathHandling=false;Switch.System.IO.BlockLongPaths=false" />
<assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1"> <assemblyBinding xmlns="urn:schemas-microsoft-com:asm.v1">
<!-- The redirects allow using AddIns with a different ILSpy version than they were compiled against. --> <!-- The redirects allow using AddIns with a different ILSpy version than they were compiled against. -->
<!-- No guarantee they'll work correctly, though (there might be breaking API changes in ILSpy). --> <!-- No guarantee they'll work correctly, though (there might be breaking API changes in ILSpy). -->

3
ILSpy/app.manifest

@ -52,6 +52,9 @@
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <application xmlns="urn:schemas-microsoft-com:asm.v3">
<windowsSettings> <windowsSettings>
<dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware> <dpiAware xmlns="http://schemas.microsoft.com/SMI/2005/WindowsSettings">true</dpiAware>
<!-- Enable long path support: https://blogs.msdn.microsoft.com/jeremykuhne/2016/07/30/net-4-6-2-and-long-paths-on-windows-10/ -->
<longPathAware xmlns="http://schemas.microsoft.com/SMI/2016/WindowsSettings">true</longPathAware>
</windowsSettings> </windowsSettings>
</application> </application>

Loading…
Cancel
Save