简体   繁体   English

在运行时手动修改Resource.resx文件

[英]Modify Resource.resx file at runtime manually

I have been asked to make a resx file available for updating/modifying at runtime, this should be done manually though, not programatically. 有人要求我在运行时提供一个可用于更新/修改的resx文件,但这应该手动完成,而不是编程方式。 So the file will be in the installation folder, and then they would go there to update values. 因此,该文件将位于安装文件夹中,然后它们将在那里更新值。 Is this possible? 这可能吗?

(Almost) anything is possible. (几乎)一切皆有可能。 You can use the System.IO.FileSystemWatcher so when someone changes any values in the file, your program will see that, and you just proceed to re-load the new values. 您可以使用System.IO.FileSystemWatcher,以便当某人更改文件中的任何值时,您的程序将看到该内容,您只需继续重新加载新值即可。

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

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