AppConfig的文件中的bin目录中未找到 [英] AppConfig file not found in bin directory

查看:155
本文介绍了AppConfig的文件中的bin目录中未找到的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我有一个 App.Config中文件,该文件的用户可以去设置一些设置在那里运行程序。
,而当我去bin\release我的程序文件夹复制,并给他们的EXE,DLL的,等我找不到 App.Config中文件
我该怎么办呢?
这是一个ConsoleApp。

I have a App.Config file that users can go and set some settings there 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 so? It is a ConsoleApp.

推荐答案

App.Config中将非常具有转换为 ApplicationName.exe.config

因此,如果您的应用程序名称为 SampleApplication .EXE ,那么你需要检查以下文件名

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

SampleApplication.exe.config

从MSDN: App.Config中

FROM MSDN : App.Config

当您在Visual Studio中开发,将源配置文件
。在项目目录您的应用程序,并设置其复制到输出
目录属性始终复制或更新复制。的
配置文件的名称是一个的.config扩展应用的名称。
为例,一个应用程序名为 MYAPP.EXE 应称为源
配置文件中的 myApp.exe.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.

这篇关于AppConfig的文件中的bin目录中未找到的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆