我需要在ASP.NET应用程序中使用不同的数据库连接字符串和SMTP服务器地址,具体取决于它是在开发环境还是生产环境中运行.
应用程序通过WebConfigurationManager.AppSettings属性从Web.config文件中读取设置.
我使用Build/Publish命令通过FTP将应用程序部署到生产服务器,然后用正确的方法手动替换远程Web.config.
有可能以某种方式简化部署过程吗?谢谢!
asp.net configuration web-config visual-studio
asp.net ×1
configuration ×1
visual-studio ×1
web-config ×1