For .NET Core+ apps the settings file is called appsettings.json
. It will be sitting in the same directory as the executable. If you don't have an appsettings.json
in your project then create one and add the dummy connection string. Within the JSON file is the ConnectionStrings
element where the connection string resides. Note however that this should be read only to the end user after installation so unless you update it during installation then it is not where you'd want to store settings changeable for the user.
.NET Core doesn't actually have any infrastructure in place for storing per-user data like .NET Framwork did. The general recommendation is to use a standard persistent storage like a custom data file in the user's document directory, perhaps the registry if you're desperate or even a database if the data is large.