checksum of VS settings-file (user.config) - get path or basestream

78 views Asked by At

I am using the internal VS settings functionality. Now I have to ensure, no data is changed outside the designated application, so I want to compute a checksum of the whole xml-file (user.config).

To compute the checksum, I need the path of the file. Is there an opption to get the path or maybe the basestream of the settingsreader or sth else?

Kind regards Dominic

=====================

The kind of application is Windows-Forms-Application for .net4 environment. I am using VS2013.

1

There are 1 answers

1
S.Spieker On

You can get the information with the following call:

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile