【问题标题】:Add comments in App.config in Winform application [duplicate]在 Winform 应用程序的 App.config 中添加注释 [重复]
【发布时间】:2019-04-09 11:22:33
【问题描述】:

我正在使用 C# 开发一个 Windows 应用程序。我需要在应用程序设置( App.config )中添加一些 cmets 这是我的 App.config

<connectionStrings>
    <add name="SLTBillConnectionString" connectionString="Data Source=DESKTOP-BIJLHTG\Yuresh_SQL;Initial Catalog=SLTBillPaymentDB;Integrated Security=True" providerName="System.Data.SqlClient" />
</connectionStrings>

<appSettings>
    <add key="ScheduledTimeForNewDay" value="09" />
    <add key="KioskCode" value="0001" />
    <add key="IsMobitelPaymentEnable" value="false" />
    <add key="MaxChequeAmount" value="500000" />
    <add key="MinChequeAmount" value="10" />
</appSettings>

【问题讨论】:

  • 尝试html注释语法&lt;!-- comment --&gt;

标签: c# winforms app-config application-settings


【解决方案1】:

和 HTML 一样,试试&lt;!-- your comment --&gt;

【讨论】:

  • 有效!感谢 Ivien
猜你喜欢
  • 1970-01-01
  • 2014-09-16
  • 1970-01-01
  • 1970-01-01
  • 1970-01-01
  • 2012-07-12
  • 1970-01-01
  • 2010-10-02
  • 1970-01-01
相关资源
最近更新 更多