This documentation is archived and is not being maintained.

Identifiers Element for Reference (Visual Studio Project Policy) 

Visual Studio 2005

Contains the identifiers that are used to locate a project reference in the Visual Studio integrated development environment (IDE).


<Identifiers><FileName>name of file</FileName><MajorVersion>minor version number</MajorVersion><MinorVersion>major version number</MinorVersion></Identifiers>

DefsReferenceIdentType

The following sections describe attributes, child elements, and parent elements.

Attributes

None.

Child Elements

Element Description

FileName

Optional element.

Specifies the file name that is used as an identifier for a reference.

MajorVersion

Optional element.

Specifies the major version number that is used as an identifier for a reference.

MinorVersion

Optional element.

Specifies the minor version number that is used as an identifier for a reference.

Parent Elements

Element Description

Reference

Contains the identifiers for a project reference.

The child elements must be in the following order:

  • Filename

  • MajorVersion

  • MinorVersion

This example shows how to define a project reference to System.Windows.Forms.dll.

<ElementDefs>
   <Reference Id=refSystem.Windows.Forms>
      <Identifiers>
         <FileName>System.Windows.Forms.dll</FileName>
      </Identifiers>
   </Reference>
</ElementDefs>

This example shows how to define a reference to only version 4.3 of a DLL named PerfUtil.dll:

<Reference Id=refPerfUtil>
   <Identifiers>
      <FileName>PerfUtil.DLL</FileName>
      <MajorVersion>4</MajorVersion>
      <MinorVersion>3</MinorVersion>
   </Identifiers>
</Reference>

Namespace

http://schemas.microsoft.com/VSPolicy/PDLSchema

Schema Name

Visual Studio Project Policy

Validation File

Policy.xsd

Can be Empty

Yes

Show: