Is it possible to add comments to a csproj file?

Can you add comments to a .csproj file? If so, what's the best way to do it?


Solution 1:

Comments are written as usual in XML files:

<!-- comment -->

How to: Write a Simple MSBuild Project

Solution 2:

The following works for multi-line comments.

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