Can you add comments to a .csproj file? If so, what's the best way to do it?
1) Create a new desktop console csproj (or an existing one) 2) unload the project 3) Edit the csproj file 4) add the following xml after the first PropertyGroup 5) save the file 6) Reload the project 7) Right click on project properties 8) Select the "build" tab from the app designer 9) see error Apparently something ...
Right-click on the project (tagged as unavailable in solution explorer) and click "Edit yourproj. csproj". This will open up your CSPROJ file for editing. After making the changes you want, save, and close the file.
From the Edit menu, choose IntelliSense > Insert Comment. From the right-click or context menu on or just above the code element, choose Snippet > Insert Comment.
A CSPROJ file is a C# (C Sharp) programming project file created by Microsoft Visual Studio. It contains XML-formatted text that lists a project's included files and compilation options.
Comments are written as usual in XML files:
<!-- comment -->
How to: Write a Simple MSBuild Project
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With