IniFile icon indicating copy to clipboard operation
IniFile copied to clipboard

Cannot read desktop.ini, url files or git config

Open Scal-Human opened this issue 2 years ago • 1 comments

Hi all, I wanted to use the library to read desktop.ini and .url files that may contain information that targets Windows Search (metadata on folders and links) which uses guid's as section names but the library fails to read them: MethodInvocationException: Exception calling ".ctor" with "1" argument(s): "An unrecognized line was encountered in the INI content. [{64440492-4C8B-11D1-8B70-080036B11A03}]"

I also wanted to use it to read git repository config files but this fails also: MethodInvocationException: Exception calling ".ctor" with "1" argument(s): "An unrecognized line was encountered in the INI content. [remote "origin"]"

Have a nice day, Scal

Scal-Human avatar Aug 27 '23 14:08 Scal-Human

In the current version of the library, section names are restricted to alphanumeric chars, dots, dollar symbols, colons and spaces. We'll be release a new version in a few days with support for more flexible names, including GUID's.

JeevanJames avatar Oct 01 '23 22:10 JeevanJames