Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Is it possible to add comments to a csproj file?

Tags:

csproj

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

like image 489
gonzobrains Avatar asked Aug 05 '12 08:08

gonzobrains


People also ask

How do you insert a comment in Csproj?

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 ...

How do I edit a Csproj file?

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.

How do you add a comment in Visual Studio?

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.

What does Csproj file contains?

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.


1 Answers

Comments are written as usual in XML files:

<!-- comment --> 

How to: Write a Simple MSBuild Project

like image 179
Anders Lindahl Avatar answered Sep 19 '22 20:09

Anders Lindahl