Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
AddPropertySheet Method

VCConfiguration.AddPropertySheet Method

Adds a property sheet to the collection of property sheets directly imported by a configuration.

Namespace:  Microsoft.VisualStudio.VCProjectEngine
Assembly:  Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)

VCPropertySheet AddPropertySheet(
	string FileName
)

Parameters

FileName
Type: System.String

Relative to the importing property sheet, the full path or relative path of the property sheet to add. The path can contain build system macros.

Return Value

Type: Microsoft.VisualStudio.VCProjectEngine.VCPropertySheet
The VCPropertySheet object that corresponds the property sheet that is added.

The new property sheet is added last in the evaluation order of the property sheets.

For example, if you want the debug configuration of project file C:\proj1.vcxproj to import the property sheet C:\folder1\folder2\Q.props, call this method on the debug configuration object. For the FileName parameter, specify either "C:\folder1\folder2\Q.props" or "folder1\folder2\Q.props". In the latter case, the relative path of Q is with regard to the project directory.

Show:
© 2015 Microsoft