我可以在安装我的客户端系统后更改我的应用程序config.exe.xml文件吗? [英] can i change my app config.exe.xml file after install my client system?

查看:162
本文介绍了我可以在安装我的客户端系统后更改我的应用程序config.exe.xml文件吗?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了一个Windows项目,现在我将我的项目转换为exe文件。并安装到我的客户端系统它显示错误..没有数据库找到或未共享有时它显示错误,如无法更新数据库是只读。现在我建议编辑配置文件。然后如何更改应用配置文件?

i create a windows project now i converted my project as exe file. and install into my client system it show a error.. "no database found or unc share" some times its shows a error like "unable to update database is read only". now i suggest to edit config file. then how to change a app config file?

推荐答案

您可以在构建后更改your_main_exe_module_of_your_assembly.exe.config文件;这是由于构建而在输出目录中创建的文件。即使未在构建期间创建,也可以创建此文件。这就是这个文件的目的,一个配置的文本界面,可以为不同的目的进行修改,修改一些配置设置,而不是硬编码。



-SA
You can change "your_main_exe_module_of_your_assembly.exe.config" file after the build; this is the file created in your output directory as a result of a build. You can create this file even if is not created during the build. This is the purpose of this file, a text interface to configuration which can be modified for different purposes, to modify a number of configurations settings, instead of hard-coding them.

—SA


这篇关于我可以在安装我的客户端系统后更改我的应用程序config.exe.xml文件吗?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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