A Visual C++ project file is an XML file with the extension .vcproj, which contains information needed to build a Visual C++ project.
Note |
|---|
| .vcproj files are not compatible with NMAKE. For more information on how to build Visual C++ projects with NMAKE, see NMAKE Reference. |
Example
The following is a sample .vcproj file:
<?xml version="1.0" encoding="Windows-1252"?>
<VisualStudioProject
ProjectType="Visual C++"
Version="7.00"
Name="SomeProjName"
ProjectGUID="{SomeGuid}"
{all Read/Write properties of VCProject }
>
<Platforms>
{One or more Platform Objects}
<Platform
Name="{PlatformName}"/>
</Platforms>
<Configurations>
{any number of Configuration objects }
<Configuration
Name="{ConfigName}|{PlatformName}"
{ All read/write properties on VCConfiguration }
>
{List of Tool Objects - See below }
</Configuration>
</Configurations>
<References>
{any number of assembly, COM, or project references }
<AssemblyReference
RelativePath="{reference}"/>
<ActiveXReference
ControlGUID="{guid}"
ControlVersion="{version}"
WrapperTool="{tool}"/>
<ProjectReference
ReferencedProjectIdentifier="{project_reference_guid}"
Name="project_name"/>
</References>
<Files>
{ Any number of Filter or File objects }
<Filter
{ All Read/Write properties of VCFilter }
{ Any Number of File or Filter objects }
</Filter>
<File
RelativePath="{SomePath}"
{All read/write properties on VCFile }
>
{0 FileConfiguration's or 1 FileConfiguration per project configuration }
<FileConfiguration
Name="{ConfigName}|{PlatformName}">
{ Tool object }
</FileConfiguration>
</File>
</Files>
<Globals>
{ 0 or more global objects }
<Global
Name="SomeName"
Value="SomeValue"
/>
</Globals>
</VisualStudioProject>
{ List the list of valid tools can include }
<Tool
Name="VCCLCompilerTool"
{ all read/write properties of VCCLCompilerTool }
/>
<Tool
Name="VCCustomBuildTool"
{ all read/write properties of VCCustomBuildTool }
/>
<Tool
Name="VCLinkerTool"
{ all read/write properties of VCLinkerTool }
/>
<Tool
Name="VCMIDLTool"
{ all read/write properties of VCMIDLTool }
/>
<Tool
Name="VCPostBuildEventTool"
{ all read/write properties of VCPostBuildEventTool }
/>
<Tool
Name="VCPreBuildEventTool"/>
{ all read/write properties of VCPreBuildEventTool }
/>
<Tool
Name="VCPreLinkEventTool"/>
{ all read/write properties of VCPreLinkEventTool }
/>
<Tool
Name="VCResourceCompilerTool"
{ all read/write properties of VCResourceCompilerTool }
/>
<Tool
Name="VCWebServiceProxyGeneratorTool"
{ all read/write properties of VCWebServiceProxyGeneratorTool }
/>
<Tool
Name="VCWebDeploymentTool"
{ all read/write properties of VCWebDeploymentTool }
/>
<Tool
Name="VCNMakeTool"
{ all read/write properties of VCNMakeTool }
/>
<Tool
Name="VCLibrarianTool"
{ all read/write properties of VCLibrarianTool }
/> Use the XSD Schema for Project Files to validate your own .vcproj files.
See Also