开发者

How to use FxCop CustomDictionary.xml from the project localization?

开发者 https://www.devze.com 2023-02-10 05:48 出处:网络
I create an custom FxCop rule, that need the the path to CustomDictionary.xml, but not this in Program Files, but that used in my FxCop project file. I has tryed to use reflection to Assembly.GetEntry

I create an custom FxCop rule, that need the the path to CustomDictionary.xml, but not this in Program Files, but that used in my FxCop project file. I has tryed to use reflection to Assembly.GetEntryAssembly开发者_C百科() and diagnostic to Process.GetCurrentProcess() but no result. Where should i search such information?


Do you really want to access that particular file, or would you simply like to take advantage of the cumulative dictionary contents (as do the Microsoft-provided FxCop rules)? If the latter, you can use the public Microsoft.FxCop.Sdk.NamingService class, which takes care of all the messy dictionary file reading details for you.

0

精彩评论

暂无评论...
验证码 换一张
取 消