How do I compile my App.config into my exe in a VS2010 C# console app?

前端 未结 10 1969
傲寒
傲寒 2020-12-05 17:24

I\'m creating a console app in Visual Studio 2010 with c#. I want this app to be stand alone, in that all you need is the exe, and you can run it from anywhere. I also want

10条回答
  •  广开言路
    2020-12-05 18:16

    Take a winform application for example, during compilation, a file 'xxx.EXE.config' will be generated along with the output EXE file. It will contain the 'app.config' settings. Distribute this as well.

提交回复
热议问题