How do we manage per-site parameters, in asp.net 5.0?

Jeff Dege 1 Reputation point
2021-05-04T20:30:08.587+00:00

We're trying to move a fairly complicated set of web applications from .NET 4.5 to .NET 5.0, hosted in IIS.

One problem we need to figure out is how to manage the per-environment configuration, during deploys.

With .NET 4.5 we are using web deploy packages. The production team already has hundreds of xxx.SetParameters.xml files for the many customers and environments.

In dev and test, we're using appsettings.%ASPNETCORE_ENVIRONMENT%.json, but that's not going to work for our production deploys.

The production team would like to continue using web deploy packages with xxx.Parameters.xml and xxx.SetParameters.xml files, so they don't have to reconstruct them in some new mechanism.

We're fine with telling them they have to change, if they really do have to change.

How are per-environment configuration settings usually managed, in asp.net 5.0?

Is there a way of telling asp.net to look to the web.config files, instead of appsettings.json?

ASP.NET Core
ASP.NET Core
A set of technologies in the .NET Framework for building web applications and XML web services.
4,156 questions
{count} votes