How to use different .settings files for different environments in .NET?

前端 未结 6 792
温柔的废话
温柔的废话 2021-02-02 01:11

.NET allows you to use .settings files to manage application settings. I would like to store Production, Development and Test settings separately in a way that I can do somethi

6条回答
  •  醉酒成梦
    2021-02-02 01:43

    Just some extra info on .NET environment based config files without using your above implementation specifically:

    The Enterprise Library has this feature since V3.0: Summary

    Visual Studio 2010 will have this feature also. Its called Config Transformation

提交回复
热议问题