App.Config Transformation for projects which are not Web Projects in Visual Studio?

后端 未结 14 2755
走了就别回头了
走了就别回头了 2020-11-22 04:06

For Visual Studio 2010 Web based application we have Config Transformation features by which we can maintain multiple configuration files for different environments. But the

14条回答
  •  眼角桃花
    2020-11-22 04:21

    You can use a separate config file per configuration, e.g. app.Debug.config, app.Release.config and then use the configuration variable in your project file:

    
        App.$(Configuration).config
    
    

    This will then create the correct ProjectName.exe.config file depending on the configuration you are building in.

提交回复
热议问题