【问题标题】:Is it possible to add comments to a csproj file?是否可以向 csproj 文件添加注释?
【发布时间】:2018-02-17 00:54:36
【问题描述】:

您可以将 cmets 添加到 .csproj 文件吗?如果是这样,最好的方法是什么?

【问题讨论】:

标签: csproj


【解决方案1】:

注释照常写在 XML 文件中:

<!-- comment -->

How to: Write a Simple MSBuild Project

【讨论】:

  • 只是确保没有一些花哨的、微软特有的评论风格。谢谢!
  • @gonzobrains 我试过了,它奏效了,然后然后我做了谷歌搜索让我来到这里只是因为我仍然不相信我是按照微软的方式做的.
【解决方案2】:

以下适用于多行 cmets。

<!-- 
  comment 1
  comment 2
  ....
-->

【讨论】:

    猜你喜欢
    • 2011-09-02
    • 1970-01-01
    • 1970-01-01
    • 2013-04-11
    • 2022-06-23
    • 2011-05-03
    • 1970-01-01
    • 2021-08-29
    • 1970-01-01
    相关资源
    最近更新 更多