Chapter 19: Question About Web.Config Transforms
I have a quick question about web.config transforms as discussed in Chapter 19.
I followed the guidelines in the chapter for my own site (not the Planet Wrox site) and make a publishing profile and a web.config transformation file to modify my connection strings and some other things. It all worked wonderfully, and when I looked in the web.config emitted from the publishing process, the file the changes were all there.
However, I noticed the transformation .config file was emitted into the list of published files as well, and this confused me. In my naive understanding of this process, I was sort of thinking of that file as being something that Visual Studio would use to modify the real web.config file for my published site, but that that file itself wouldn't actually be needed on the production machine.
Obviously it's not a big deal for me to put it on the server too, but it made me worry I didn't fully understand how this transform file worked, and that I had missed something important.
Thanks in advance for any responses.
Erik
|