Hi Andrew,
From your description, you're using vs 2005/ASP.NET web deployment project
to precompile the web site project and wonder how to use the "section
replacement" feature and avoid letting the separate config section file be
copied to the compiled output folder, right?
Based on my research, the "section replacement" feature of WDP does support
you to supply a full qualified path instead a relative path(just simply the
filename). For example, you can use the following line to supply a separate
config file(in an external folder) in the WDP's section replacement setting
dialog:
system.web/pages=e:\temp\mypages.config;
<<<<<<<
Thus, at runtime, the WDP will pickup the configuration setting from that
file (in the external dir) and replace the certain section with the content
in that file. Also, after the precompilation, that separate file (in
external folder) will not be copiled to the application's precompile output
directory. I've tested it on my local environment and it works well.
You can try it to see whether it fits your requirement and feel free to let
me know if you need any further help/
Sincerely,
Steven Cheng
Microsoft MSDN Online Support Lead
==================================================
Get notification to my posts through email? Please refer to
http://msdn.microsoft.com/subscriptions/managednewsgroups/default.aspx#notif
ications.
Note: The MSDN Managed Newsgroup support offering is for non-urgent issues
where an initial response from the community or a Microsoft Support
Engineer within 1 business day is acceptable. Please note that each follow
up response may take approximately 2 business days as the support
professional working with you may need further investigation to reach the
most efficient resolution. The offering is not appropriate for situations
that require urgent, real-time or phone-based interactions or complex
project analysis and dump analysis issues. Issues of this nature are best
handled working with a dedicated Microsoft Support Engineer by contacting
Microsoft Customer Support Services (CSS) at
http://msdn.microsoft.com/subscriptions/support/default.aspx.
==================================================
This posting is provided "AS IS" with no warranties, and confers no rights.