Follow

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use
Contact

".NET 7 Way" Of Getting Extended File Attributes

I need to modernize some file I/O helper code from .NET 4.x to .NET 7, and in particular, a method to read Extended File Attributes. In the past, using Shell32 was regarded as a "necessary evil" to dive into file metadata.

Is there a more modern way to pull Extended File Attributes using .NET 7 and C#? For example, getting the "Date taken" information from a photo?

Thanks in advance for your help.

MEDevel.com: Open-source for Healthcare and Education

Collecting and validating open-source software for healthcare, education, enterprise, development, medical imaging, medical records, and digital pathology.

Visit Medevel

>Solution :

There is no modern API (at least out-of-the-box). There is a proposal to add such an API https://github.com/dotnet/runtime/issues/49604

Add a comment

Leave a Reply

Keep Up to Date with the Most Important News

By pressing the Subscribe button, you confirm that you have read and are agreeing to our Privacy Policy and Terms of Use

Discover more from Dev solutions

Subscribe now to keep reading and get access to the full archive.

Continue reading