[英]Win32 console app living on server, do I need to rebuild in order to update app.config?
我有一个每晚运行的服务应用程序,我想更改驻留在app.config中的一些连接字符串,我应该能够找到文件并进行更改,而不必重新构建和重新部署,而不仅仅是该文件吗?
That's right. 那就对了。 If you're changing configuration settings in a settings file, you do not need to recompile.
如果要更改设置文件中的配置设置,则无需重新编译。
If it were a Windows Service, you would need to stop and restart it, but for a console app, it will read the configuration settings every time it's launched. 如果它是Windows服务,则需要停止并重新启动它,但对于控制台应用程序,它将在每次启动时读取配置设置。 (In your case, presumably through a scheduled task or other scheduling software)
(在您的情况下,大概是通过计划任务或其他计划软件进行的)
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.