开发者

C# BestPractice: Is it ok to have more than one Settings file?

开发者 https://www.devze.com 2023-02-03 07:11 出处:网络
I know it\'s possible to use more than one .settings file, but is it a best practice to do so? The only way I can seem to 开发者_如何学Pythondo it is by copy/pasting a file since Add>Item... doesn\'t

I know it's possible to use more than one .settings file, but is it a best practice to do so? The only way I can seem to 开发者_如何学Pythondo it is by copy/pasting a file since Add>Item... doesn't have a settings file listed in it.


I don't think there's anything wrong with having multiple settings files but I do think having two *.settings files is confusing. I'm not sure what reason there would do that I'm sure other .net developers would be equally confused as well. If for some reason you need another settings file don't name it *.settings.

0

精彩评论

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