[Mono-aspnet-list] Web.config transformations
cthielen at gmail.com
Fri Jun 24 15:41:02 EDT 2011
Thanks. Looks like Web.config transformations are not what I needed.
I was trying to solve the problem of storing sensitive data while maintaining a public repository for the code.
I ended up adding a <appSettings file="appSettings.config" /> section to my Web.config and then putting appSettings.config in .gitignore.
On Jun 22, 2011, at 10:32 PM, Alexander M. Batishchev wrote:
> As far as I know regarding Visual Studio, WCT is performed only on deploy in
> selected build configuration, and is not during local debug.
> -----Original Message-----
> From: mono-aspnet-list-bounces at lists.ximian.com
> [mailto:mono-aspnet-list-bounces at lists.ximian.com] On Behalf Of Christopher
> Sent: Thursday, June 23, 2011 3:23 AM
> To: mono-aspnet-list at lists.ximian.com
> Subject: Re: [Mono-aspnet-list] Web.config transformations
> Part of my problem may be in my understanding of Web.config transformations
> too. If MonoDevelop is in "debug" configuration for the project, does it not
> first include Web.config, then apply Web.Debug.config, or is that
> transformation only done by xsp/mod_mono when a site is deployed? i.e. are
> transformations applied when merely writing code in MonoDevelop?
> On Jun 22, 2011, at 2:50 PM, Christopher Thielen wrote:
>> I'm not sure if this is a Mono/MonoDevelop question or general ASP.NET
> question, but either way, somebody here should know!
>> I'd like to use Web.config transformations to avoid storing sensitive data
> in public repositories.
>> I have a standard Web.config:
> /Web.config - as you can see, I've left the connection strings empty.
>> and a Web.Debug.config, which I'm trying to use to test transformations:
>> But they are not applying. I tried putting blatantly bad XML in
> Web.Debug.config to see if it's being parsed, and no error is thrown.
>> Any ideas?
>> (Mono 2.10.1 on Mac (2.10.2 as a MySQL connector bug), MonoDevelop 2.6
> beta 3)
>> Christopher Thielen
> Mono-aspnet-list mailing list
> Mono-aspnet-list at lists.ximian.com
More information about the Mono-aspnet-list