You probably have the bin \ Debug folder under the project folder, which is the source folder of the assembly created by Visual Studio when creating the project for Debug configuration.
My guess is that something (possibly a test environment) still has a loaded DLL file, so Visual Studio cannot delete and replace the existing Framework.Tests.dll.config file with the contents of your app.config. [Note: the action of building the project for the app.config files is to copy it to the target folder, renamed according to the executable file, with the extension .config.]
Chris dickson
source share