简体   繁体   English

位于服务器上的Win32控制台应用程序,是否需要重建才能更新app.config?

[英]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.

相关问题 如何在Win控制台应用程序中读取加密的app.config appSettings? - how to read encrypted app.config appSettings in win console application? 计划的控制台应用程序与App.config崩溃 - Scheduled Console App Crashes with App.config 如何在 C#/Win32 api 中找到 Windows 应用程序执行别名的目标? - How do I find the target of a Windows App Execution Alias in C#/Win32 api? 在Windows 8上无法访问App.Config的路径。如何更新App.Config? - Access to path denied for App.Config on Windows 8. How can I update App.Config? 如何从命令行使用 Serilog app.config 将 HelloWorld 写入控制台 - How do I write HelloWorld to a console with Serilog app.config from command line 如何让我的 c# 控制台应用程序与 app.config 一起运行? - How do I get my c# console application to run with an app.config? 我需要在app.config中启用“多个活动结果集”吗? - Do I need to enable “Multiple Active Result Sets” in app.config? LaunchFullTrustProcessForCurrentAppAsync 杀死 win32 应用程序 - LaunchFullTrustProcessForCurrentAppAsync kills win32 app 在 app.config 中为控制台应用程序存储值 - storing value in app.config for console application 可以在app.config中模拟控制台应用程序吗? - Possible to impersonate in app.config for console application?
 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM