Bishal Tim
09/01/2023, 7:22 AMOwain Jones
09/01/2023, 2:26 PMappsettings.Development.json
file.
Unlike in .NET Framework, where the web.config
transforms where based on the build configuration, the .NET Core appsettings.json
transforms are based on the ASPNETCORE_ENVIRONMENT
environment variable.
The value Visual Studio uses can be set in your project's \Properties\launchSettings.json
file, although personally, I would highly recommend using Visual Studio's User Secrets to manage your local connection strings.
If that isn't the case, then I would check to see if Unattended Install has been setup in your appsettings.json. (this is a feature which automatically installs Umbraco to the configured db and adds the configured admin account)Bishal Tim
09/02/2023, 10:58 AMOwain Jones
09/03/2023, 12:03 AMUmbraco:CMS:Unattended
.
Here's the documentation for it: https://docs.umbraco.com/umbraco-cms/reference/configuration/unattendedsettings
If it's there in your app settings, then you can remove it or comment it out to stop it from happening 🙂Bishal Tim
09/03/2023, 2:18 AMBishal Tim
09/03/2023, 2:20 AMOwain Jones
09/04/2023, 10:21 AMappsettings.Development.json
file? As any settings in there will likely be used when running with Visual Studio (the default launchSettings.json
file sets ASPNETCORE_ENVIRONMENT
to Development)Bishal Tim
09/14/2023, 3:29 AM