简体   繁体   English

如何对多个客户端使用相同的App.config

[英]How to use same App.config for multiple clients

I am a newbie at .NET and I need help. 我是.NET的新手,需要帮助。

1) There is possible to have an App.config file at network folder and use those setting for multiple clients? 1)可以在网络文件夹中有一个App.config文件,并将这些设置用于多个客户端吗? if yes, how can I do that? 如果是,我该怎么办?

2) If I will make a change in this App.config, it will effect in real-time? 2)如果我要对此App.config进行更改,它将实时生效吗?

The idea is that I want to create one configuration file that will affect all clients without having to update app.config in each client. 我的想法是,我想创建一个将影响所有客户端的配置文件,而不必在每个客户端中更新app.config。

Thanks. 谢谢。

You can consider to make symbolic link to your network path 您可以考虑建立符号链接到您的网络路径

 mklink /H "C:\myApp\app.config" "\\server\shared_app\app.config"

ake sure that users have only read permission to file. 确保用户仅具有文件读取权限。

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

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