python (12.9k questions)
javascript (9.2k questions)
reactjs (4.7k questions)
java (4.2k questions)
java (4.2k questions)
c# (3.5k questions)
c# (3.5k questions)
html (3.3k questions)
C# Move AppSettings from .exe.config in Program Folder to Custom Location
C# MVVM project targeting .NET Framework 4.6.2 with underlying SQL Server database.
We have a handful of user-writable settings in appSettings. These are stored in the PROGRAMNAME.exe.config in C:\Pr...
MF Luder
Votes: 0
Answers: 1
Dotnet6 got rid of Main method - how can I change the following in Dotnet5?
I have a connection string setup I used in Dotnet5 and prior versions of Dotnet Core and it's worked great, but upgrading to Dotnet6 and I have no idea how to get the following to work (basically a co...

MC9000
Votes: 0
Answers: 2
How IConfiguration.Bind() Works In .NET Core without 'out' or 'ref' in it's Arguments?
In .NET Core we use IConfiguration to bind configuration to an instance.
var settings = new AppSettings();
Configuration.GetSection("AppSettings").Bind(settings);
To create a similar functi...

Sangeeth Nandakumar
Votes: 0
Answers: 1
appsettings.json change connection string on runtime
Asume i have 4 servers with 4 dbs they have all the same catalog.
it is possible to change {serverLocation} on runtime ?
"ConnectionStrings": {
"Euro": "Data Source=campus-...
Ivica Vasiljevic
Votes: 0
Answers: 2