gpt4 book ai didi

c# - WPF C# Properties.Settings 不存在

转载 作者:行者123 更新时间:2023-12-02 16:28:55 26 4
gpt4 key购买 nike

<分区>

我正在尝试为我的 WPF 应用程序创建简单的应用程序/用户设置。

大多数答案和教程建议为此使用 Properties.Settings.Default
但是,Settings 不存在于我的 Properties 命名空间中。
我的项目资源管理器中也没有 .settings 文件,如 the microsoft documentation建议:

  1. Open Visual Studio.
  2. In Solution Explorer, expand the Properties node of your project.
  3. Double-click the .settings file in which you want to add a new setting. The default name for this file is Settings.settings.

Solution explorer

而且我的项目属性窗口中没有设置选项卡,正如某些(较旧的?)资源所建议的那样。

Project properties window

26 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com