Brad Wood wrote:
> That makes sense in general, but in my situation it's just a matter
> of a test suite needing access to some string literals (and I'd
> rather keep them in one place).
> Providing an interface for the test code would not be appropriate IMO.
If they are shared values then they should go in machine.config.
The idea behind the application config file (which has weaknesses as
well as strengths) is that it allows you to have XCOPY deployment, that
is, you deploy the app simply by copying its files.
If you share values between application files then you break XCOPY
deployment. Indeed, if you put those values in machine.config then XCOPY
deployment is also broken, but at least you know where the values should
be.
Richard
--
http://www.grimes.demon.co.uk/workshops/fusionWS.htm
http://www.grimes.demon.co.uk/workshops/securityWS.htm