Home Dashboard Directory Help

String substitution in configuration files. by JocularJoe


 as Fixed Help for as Fixed

Sign in
to vote
Type: Suggestion
ID: 433571
Opened: 4/19/2009 6:10:33 AM
Access Restriction: Public


I would like to see a generalized mechanism for string substitution for all strings obtained from an application configuration file, similar to the way |DataDirectory| can optionally be substituted in a Sql Server connectionString.
Sign in to post a comment.
Posted by JocularJoe on 11/3/2009 at 10:42 AM
"you can create a custom build task". This still doesn't address the issue. The substitution should take place at runtime, not at build time.
Posted by Microsoft on 6/24/2009 at 2:07 PM
This is true; and you can create a custom build task to perform this function for non web technologies. http://www.c-sharpcorner.com/UploadFile/mgold/MSBuildForXml07282006005222AM/MSBuildForXml.aspx

Posted by JocularJoe on 6/23/2009 at 5:12 AM
" this issue is addressed by the Web Deployment tool ". I haven't looked at VS2010 yet. But surely the Web Deployment tool would only partially address the issue: the same requirement exists for applications other than web apps (console, winforms, windows services, ...)?
Posted by Microsoft on 6/22/2009 at 4:43 PM
Thanks, this issue is addressed by the Web Deployment tool in Visual Studio 2010.
Posted by Microsoft on 4/21/2009 at 5:58 AM
Thanks for reporting this issue. We are escalating this suggestion to the product unit who works on that specific feature area. The team will review this issue and make a decision on whether they will fix it or not for the next release.

Thank you,
Visual Studio Product Team
Sign in to post a workaround.