C# - app config doesn't change

前端 未结 2 1523
南笙
南笙 2021-02-08 02:12

I want to save some settings on a config file for future use. I\'m trying to use the regular code that I see on all the tutorials -

 Configuration config = Conf         


        
2条回答
  •  天涯浪人
    2021-02-08 02:31

    To test using the normal exe's config file un-check the box for "Enable the Visual Studio Hosting Process" in the "Debug" tab in the project properties menu. That will make visual studio no-longer use the vshost.exe file to launch and the correct config file will be used.

    enter image description here

提交回复
热议问题