Options
LongPathAware / manifest ?
I am running into a scenario where I get PathTooLongException on some paths (LINQpad 5)
I'm on windows 10.
Per https://learn.microsoft.com/en-us/windows/win32/fileio/maximum-file-path-limitation?tabs=registry#enable-long-paths-in-windows-10-version-1607-and-later I do have LongPathsEnabled in the registry.
But it says I also need to have this in my application manifest...
true
Is there any way to do this with LINQPad?
(adding a to the side application manifest file somewhere perhaps?)
Comments
I tried to post the manifest XML above, it does not show properly, trying again:
<application xmlns="urn:schemas-microsoft-com:asm.v3"> <windowsSettings xmlns:ws2="http://schemas.microsoft.com/SMI/2016/WindowsSettings"> <ws2:longPathAware>true</ws2:longPathAware> </windowsSettings> </application>
Can you try with the LINQPad 9 preview? This has long path enabled for both the host and script processes:
https://www.linqpad.net/LINQPad9.aspx