Top "App-config" questions

.NET application configuration files contain settings specific to an application.

How do I retrieve ApplicationSettings from a loaded App.config file?

Is it possible to access the values from the applicationSettings section of a loaded app.config file? I have found …

.net visual-studio configuration app-config application-settings
Can several WCF services share a common BaseAddress?

I've got an assembly containing several WCF services, each with its own contract. It all works nicely. The service config …

wcf app-config endpoints base-address
MSTest and app.config issue

I am stuck trying to automate unit tests runs with MSTest and deployment of app.config. I read multiple posts …

c# msbuild app-config mstest
How to read values from multiple Configuration file in c# within a single project?

Here in my project I have two application configuration files called app.config and accessLevel.config. Now using the OpenExeConfiguration …

c# app-config configuration-files config configurationmanager
Is it possible to split a string across multiple lines in an XML file? If so, how?

I've got an XML config file with some really long strings. Generally, I format my source files, etc. so that …

xml app-config
Nested Configuration Section app.config

I don't find any examples of how to access such a nested configuration section in a app.config <my.…

c# app-config
How to dynamically set log file using App.config and System.Diagnostics?

I was looking for a solution to provide logging to my latest project when I came across an article ( http://…

c# logging app-config system.diagnostics
Setup App.Config As Custom Action in Setup Project

I have a custom application with a simple app.config specifying SQL Server name and Database, I want to prompt …

deployment app-config setup-project
What does "SKU" (attribute) mean in C#?

Today I encountered with the line <supportedRuntime version="v4.0" sku=".NETFramework,Version=v4.5"/> in my App.config file …

c# app-config skus
ConfigurationSettings.AppSettings is obsolete, warning

var values = new NameValueCollection { { "key", ConfigurationSettings.AppSettings["API-Key"].ToString() }, { "image", Convert.ToBase64String(File.ReadAllBytes(photo.ToString())) } }; What's the new …

c# configuration app-config appsettings