Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

XML in the csproj file

Tags:

c#

csproj

Can anyone point me to a schema or a list of properties valid inside the C# csproj file? I've looked, but don't appear to be able to find any documentation on it.

like image 557
Paul Michaels Avatar asked Apr 13 '10 17:04

Paul Michaels


People also ask

Is Csproj an XML file?

CSPROJ files are are meant to be opened and edited in Microsoft Visual Studio (Windows, Mac) as part of Visual Studio projects. However, because CSPROJ files are XML files, you can open and edit them in any text or source code editor.

Where does XML go in Visual Studio project?

Add the XML file to Visual Studio Project Open up Visual Studio and create a new project or open an existing one. Add an existing item to the C# project. – Select the XML file we created earlier and press Add. – The file will be added to the project.

What is a Csproj file?

What is a CSProj file? Files with CSPROJ extension represent a C# project file that contains the list of files included in a project along with the references to system assemblies.

What is MSbuild project file?

These project files are XML files and similar in nature to Apache Ant or Nant. The MS Build project file format is used by Visual Studio to store information about projects it manages. Project files can be evaluated (or run) on the command line ( cmd.exe , PowerShell) with MSbuild.exe .


2 Answers

You mean something like this documentation? A reference can be found here

like image 177
n535 Avatar answered Oct 10 '22 01:10

n535


This was already answered here...

Csproj are actually MSBuild files and I think the reference can be found here:

MSBuild Project File Schema Reference

The schema used by VS (VS 2008) is located here:

C:\Program Files\Microsoft Visual Studio 9.0\Xml\Schemas\1033\MSBuild\Microsoft.Build.Core.xsd

like image 44
Dean Kuga Avatar answered Oct 10 '22 03:10

Dean Kuga