Can a component designer access and modify the app.config or web.config file of a project at design time? More specifically, is there some hosting service exposed by VS to do this ‘the proper way’ ? I know I can locate the .config file myself, open it and have my way with it as I please, but I want this to go through the VS sanctioned way, primarily because of source control integration concerns.
Can a component designer access and modify the app.config or web.config file of a
Share
You can hook up an
IEventBindingService(I linked to the .NET 2.0 version, there are 1.1, 3.0, and 3.5 versions too)Excerpt from the page:
You can put your custom app.config manipulating code into the event handler that you expose.