How do I select a .Net application configuration file from a command line parameter?

前端 未结 5 1461
失恋的感觉
失恋的感觉 2021-01-01 19:20

I would like to override the use of the standard app.config by passing a command line parameter. How do I change the default application configuration file so that when I a

5条回答
  •  渐次进展
    2021-01-01 19:32

    A batch file that copies your desired configuration file to appname.exe.config and then runs the appname.exe.

提交回复
热议问题