VS 2005 and Web Projects
Here is an indispensable tool for building and deploying Web Projects in Visual Studio 2005.
(on msdn.microsoft.com)
Also, I have run into this sticky situation: I have several projects in my solution (a few class library projects, the website project, and the web deployment project), where one or more class libraries make use of web services. The web service endpoint binding is set to “dynamic” which means the URL is placed in an app.config file. That’s great, but when those class libraries are used in the website, the configuration information is read from the web.config file, not the individual app.config files.
Unless I am missing something on how to automatically link the app.config files to the web.config file, I have to manually import the required settings. I originally thought that the web deployment project options would save me here, because there is an option to “Enable web.config file section replacement” where you pull the section from another .config file, however it seems to be failing on anything except for the <appsettings/> section (in the app.config file the dynamic web service binding is saved in the <applicationsettings/> section).
It works if I manually update the file, but I’m disappointed that the deployment project won’t handle it. Yeah yeah, I know it’s only Beta Preview, but still!