新手-App.Config [英] Newbie - App.Config

查看:128
本文介绍了新手-App.Config的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

问候所有,

我有一个简单的问题,希望有人可以帮助我.

我已经用C#创建了一个Windows应用程序,并将一个App.Config应用于该项目.然后,我发布了该应用程序,以便可以将该程序加载到其他PC上.我的发布肯定缺少某些内容,因为我无法在另一台PC上找到App.Config文件,因此我可以对其进行更改,这对于PC来说是特定的.
此外,我在系统上找不到实际的.exe文件.但是,程序在那里(在开始...程序"下),但我似乎找不到它.

如果有人能指出我正确的方向,将非常感谢您的帮助.预先感谢您的时间和耐心等待我的查询.

很好
F.

Greetings All,

I have a simple question that I hope someone can help me with.

I have created a Windows app in C# and applied a App.Config to the project. I then published the app so that I could load the program on other PC''s. There must be something I am missing with the Publishing because I cannot find the App.Config file on the other PC so that I can make changes to it which would be particular to the PC.
Additionally, I cannot find the actual .exe file on the system. However, the program is there (under "Start....Programs") but I cannot seem to find it.

If anyone could point me in the right direction, your help would be greatly appreciated. Thank you in advance for your time and patience with my query.

Be well
F.

推荐答案

它将被安装在users文件夹下,类似于c:\ users \ [username] \ appdata \

这些是用户目录中的一组隐藏文件夹.如果为其创建安装程序,则可以在程序文件区域中获取它. Clickonce部署始终始终归用户所有.
It''s going to be installed under the users folder, something like c:\users\[username]\appdata\

These are a hidden set of folders in your users directory. If you create a setup program for it you can get it in the program files area. Clickonce deployments always go to users though.


配置文件应位于当前登录用户的应用程序数据"文件夹中.这是一个隐藏的文件夹,您必须是管理员才能更改它.最好在程序中添加功能以通过应用程序进行设置更改.

当您说自己发布"了该应用程序时,是否意味着用户运行了安装程序?
The config file should be in the currently logged-in user''s Application Data folder. This is a hidden folder, and you have to be an admin to change that. It would be better to add functionality in the program to make the settings changes via the application.

When you say you "published" the app, does that mean the user ran an installer?


这篇关于新手-App.Config的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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