Welcome to Microsoft Q&A!
Your application want to get url from the config file of project B and replace "hello", right?
I got some information after researching this issue.
You should not add a config file to class library project (Project B).
You need to declare the assemblies' configuration sections in the app.config of your application (Project A) and define a value for a particular number of settings defined in the proper assembly settings.
Create an app.config within the class library project, it contains some configurations and settings, but these configurations and settings will not be used by the executable application calling the library.
You can try to copy these settings from the library config file into the app.config of the caller.
You can also try to create a XML file to copy configurations and settings, make your class library read this file using System.XML instead of System.Configuration.
Sincerely,
Peng
*
If the answer is helpful, please click "Accept Answer" and upvote it.
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread