开发者

C# .NET Resources

开发者 https://www.devze.com 2023-04-02 14:01 出处:网络
Is it a good practice to load configuration data for a application through the use of Resources ? Please let me know.

Is it a good practice to load configuration data for a application through the use of Resources ?

Please let me know.

I am actually working with the Robotics studio and I don't think there is 开发者_Go百科any other way of loading a configuration.


Depending on the data you want to load, you could use the Application Settings features of .NET.

Application settings enable you to store and retrieve property settings and other information for your application dynamically. They also enable you to maintain custom application and user preferences on the client computer.

If you want to load a large amount of data, then resources (external or embedded) might be a better idea.


if you are talking about embedded resources compiled inside the executable or the assembly surely is not a good idea because whenever you need to change the configuration you would need to recompile/build and deploy again.

Configuration should be in config files or database so you can easily react to changes in your environment without building and deploy again.

0

精彩评论

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

关注公众号