AppConfig file not found in bin directory

后端 未结 2 1646
别跟我提以往
别跟我提以往 2021-01-17 10:35

I have a App.Config file that users can go to and set some settings to run the program. But when I go to bin\\release folder of my program to copy and give them

2条回答
  •  天涯浪人
    2021-01-17 10:55

    your App.Config willbe converted to ApplicationName.exe.config

    so if your application name is SampleApplication.exe then you need to check for the following filename

    SampleApplication.exe.config.

    FROM MSDN : App.Config

    When you develop in Visual Studio, place the source configuration file for your app in the project directory and set its Copy To Output Directory property to Copy always or Copy if newer. The name of the configuration file is the name of the app with a .config extension. For example, an app called myApp.exe should have a source configuration file called myApp.exe.config.

提交回复
热议问题