- android - RelativeLayout 背景可绘制重叠内容
- android - 如何链接 cpufeatures lib 以获取 native android 库?
- java - OnItemClickListener 不起作用,但 OnLongItemClickListener 在自定义 ListView 中起作用
- java - Android 文件转字符串
我有一个 App.Config
文件,用户可以访问该文件并设置一些设置来运行该程序。但是当我去我的程序的 bin\release 文件夹复制并给他们 exe、DLL 等时,我找不到 App.Config
文件。我应该怎么办?它是一个 ConsoleApp。
最佳答案
您的 App.Config
将被转换为 ApplicationName.exe.config
因此,如果您的应用程序名称是 SampleApplication.exe
,那么您需要检查以下文件名
SampleApplication.exe.config
。
来自 MSDN:App.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.
关于c# - 在 bin 目录中找不到 AppConfig 文件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/23296098/
我有文本框,我在其中选择 path for .txt,其中保存和编码数据对于 SqlConnection: Stream myStream = null; OpenFileDialo
我正在尝试使用以下代码在运行时更新 appconfig 文件。我没有收到错误,但它不会更新我的配置文件。 System.Configuration.Configuration config =
我想让我的应用程序独立于项目并通过 AppConfig 控制品牌。我重写了我项目中的配置,一切似乎都有效。但是如何从代码中访问 verbose_name 呢?它没有包含在文档中。 最佳答案 来自文档:
我想让我的应用程序独立于项目并通过 AppConfig 控制品牌。我重写了我项目中的配置,一切似乎都有效。但是如何从代码中访问 verbose_name 呢?它没有包含在文档中。 最佳答案 来自文档:
我的dll类库中有以下方法 private void Download(string filename) { //am calling this value from appcon
试图了解 Django 的基础知识。即应用程序如何工作。文档:https://docs.djangoproject.com/en/stable/ref/applications/#methods 在
我有一个 AppConfig 文件,如下所示。我试图遍历配置部分并获取部分名称,基于部分名称,它应该选择适当的 appSettings。例如,当第一部分是VehicleConfig 时,应该自动选择V
我需要知道如何计算应用程序设置中的键数并在类文件中操作它们...例如,我的应用程序配置如下 这里我可能有 n 把 key 。我需要计算这个项目的类文件中
我想询问有关读取应用程序配置属性值的问题。 我可以在运行时更改一些应用配置属性值,并且可以在我的代码中使用该属性值。那么,如何在我的代码中获取运行时更改的应用程序配置属性值?是否有任何选项可以在 C#
这个问题在这里已经有了答案: Overriding AppConfig.ready() (1 个回答) 关闭 3 年前。 我似乎无法让我的 AppConfig 下的准备好的功能发挥作用。 这是我在
我正在考虑使用 AppConfig,但我很难理解在测试和暂存部署在不同帐户中的情况下如何使用配置。 在这两个帐户中拥有两个完全不同的 AppConfig 设置似乎适得其反,因为这会使将配置提升到不同的
运行 az appconfig 时出现以下错误 az appconfig kv export: error: the following arguments are required: --desti
我经常看到这样的问题的答案:“我应该如何在我的 .NET 应用程序中存储设置?”是通过手动向 app.config(或 web.config)添加条目来编辑 app.config 文件,如下所示:
我有以下 Controller 方法 @RequestMapping(value = "/manager/exportXls_{userID}_{stringMonth}_{stringYear}",
我知道我可以在 AppConfig 中定义变量(键值)并在我的 C# 代码中使用它。但是,问题是:是否可以在 AppConfig 中定义变量并在 AppConfig 中使用它(类似于全局常量)? 例如
这个问题在这里已经有了答案: 关闭 10 年前。 Possible Duplicate: C# assembly > app settings > how to check if one exist
我们正在尝试为 AppConfig.ready 函数的行为编写一个自动化测试,我们将其用作初始化 Hook 以在 Django 应用加载后运行代码。我们的 ready 方法实现使用了一个 Django
我有一个 AppConfig.ready()实现取决于其他应用程序的准备情况。 是否有在所有应用程序后调用的信号或方法(我可以实现)ready()方法已被调用? 我知道 django 按 INSTAL
我有 Logger.cs我正在初始化 serilog 设置的类,如下所示: _logger = new LoggerConfiguration() .ReadFrom.
这是一个关于如何使用静态值进行在 Azure DevOps Pipeline 上运行的 VSTest 单元测试的问题。 当我开发依赖于 Web API 的单元测试时,我将本地开发计算机上托管的 Web
我是一名优秀的程序员,十分优秀!