简体   繁体   English

VS设置文件(user.config)的校验和-获取路径或基准流

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

I am using the internal VS settings functionality. 我正在使用内部VS设置功能。 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). 现在,我必须确保在指定的应用程序之外没有数据被更改,因此我想计算整个xml文件(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? 是否有获取路径的信息,或者是settingsreader的基本信息流还是其他?

Kind regards Dominic 亲切的问候多米尼克

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

The kind of application is Windows-Forms-Application for .net4 environment. 该类应用程序是.net4环境的Windows-Forms-Application。 I am using VS2013. 我正在使用VS2013。

您可以通过以下调用获取信息:

AppDomain.CurrentDomain.SetupInformation.ConfigurationFile

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM