I have a problem accessing long path names in the win32 process of my Desktop Bridge app.
I added every suggestion I could find about this but when I call DirectoryInfo in the win32 process on a folder that has a long pathname, the attributes of the directory are always set to -1.
The directory info is obtained as follows:
DirectoryInfo dir = new DirectoryInfo(dirPath);
The win32 process is build against .net Framework 4.7.2
The registry has of course the correct setting for long pathnames.
I also tried all the suggestions about the manifest file and adding a WindowsSettings tag and longPathAware tag but with no luck: - It can't be added in the 'packaging' project (different schemas concept). - It can be added in the win32 manifest but same error and I also don't think that a win32 manifest is actually used in a Desktop Bridge app. - And last, I'm not sure whether the manifest entry is still required when building against 4.7.2.
My test involves a local directory within which I created a couple of subfolders to get to something bigger than 260. I copied also some files in those folders. All done using Powershell.
Any idea what to do here?