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 the exe,DLLs, etc I can't find the App.Config
file.
What should I do?
It is a ConsoleApp.
相关问题
- Sorting 3 numbers without branching [closed]
- Graphics.DrawImage() - Throws out of memory except
- Why am I getting UnauthorizedAccessException on th
- 求获取指定qq 资料的方法
- How to know full paths to DLL's from .csproj f
Is the App.config file set to copy on build? If you right-click on the App.config in VS, and go to Properties, it should be set to 'Content' and 'Copy Always'/'Copy if newer'.
Here is a screenshot of the Properties screen:
your
App.Config
willbe converted toApplicationName.exe.config
so if your application name is
SampleApplication.exe
then you need to check for the following filenameSampleApplication.exe.config
.FROM MSDN :
App.Config