我是否需要将App.config的副本复制到客户端? [英] Do I need to make a copy of App.config to client?

查看:84
本文介绍了我是否需要将App.config的副本复制到客户端?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

亲爱的所有

我有一个应用程序将连接字符串保存在App.config xml文件中,我想在服务器中保存应用程序.exe文件并在客户端上创建快捷方式计算机,但我不知道我是否需要在客户端计算机上从App.config制作副本?

Dear all
I have an application that saves the connection string in App.config xml file, and I want to save the application .exe file in the server and to make a shortcut on the client computer, but I don't know if I need to make a copy from App.config on the client computer or not?

推荐答案

不,这不是怎么回事作品。此文件将转换为与您的应用程序可执行模块文件名+。config匹配的文件。您可以通过构建项目来部署/安装它与您在输出目录中生成的任何其他文件相同。



请参阅:

https://msdn.microsoft.com/en-us/library /ms229689%28v=vs.90%29.aspx [ ^ ],

https://msdn.microsoft.com/en-us/library/ms184658.aspx [ ^ ]。



-SA
No, this is not how it works. This file is translated to the file matching your application executable module file name + ".config". You can deploy/install it the same was as any other file you produce in your output directory by building the project.

Please see:
https://msdn.microsoft.com/en-us/library/ms229689%28v=vs.90%29.aspx[^],
https://msdn.microsoft.com/en-us/library/ms184658.aspx[^].

—SA


这篇关于我是否需要将App.config的副本复制到客户端?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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