How to get admin privileges for editing app.config in C#?

后端 未结 3 592
一向
一向 2021-01-16 11:14

I\'ve got a program which uses app.config for storing some preferences. The problem is that if the program is installed in C:\\program files\\ t

3条回答
  •  醉梦人生
    2021-01-16 11:59

    In the project properties, change those setting from being Scope=Application to Scope=User. That way, they're stored in the user's profile and you don't need administrator privileges to modify them.

提交回复
热议问题