How to use environment variables set in Azure Pipeline in the web.config file of ASP.NET server?
问题 I intend to use the following env variables from Azure Pipeline in ASP.NET's web.config file: <connectionStrings> <add name="ApplicationDbContext" connectionString="metadata=res://*/Model.csdl|res://*/Model.ssdl|res://*/Model.msl;provider=System.Data.SqlClient;provider connection string="Data Source=tcp:app-$(DeploymentEnvironment).database.windows.net,1433;Initial Catalog=app-db;Persist Security Info=False;User ID=$(DeploymentDBUserName);Password=$(DeploymentDBPassword);Encrypt=True