VCProject Interface

 

This object exposes the properties on a Visual C++ project.

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

[GuidAttribute("0BBF7245-57DC-45DD-804F-B337A15D1418")]
public interface VCProject : VCProjectItem

NameDescription
System_CAPS_pubpropertyAssemblyReferenceSearchPaths

Sets or gets a list of assembly search paths.

System_CAPS_pubpropertyConfigurations

Gets the collection of configurations on the project.

System_CAPS_pubpropertyFileEncoding

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyFileFormat

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyFiles

Gets the collection of files on the object.

System_CAPS_pubpropertyFilters

Gets the collection of filters (or folders) on the object.

System_CAPS_pubpropertyGetAllowedReferencesTypes

System_CAPS_pubpropertyIsDirty

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyItemName

Gets the name of the current item in the collection.

System_CAPS_pubpropertyItems

Gets the collection of files and top-level folders in a project or the collection of files and folders in a folder.

System_CAPS_pubpropertykeyword

Gets or sets the collection of Dynamic Help keywords associated with a project.

System_CAPS_pubpropertyKind

Gets an enumeration indicating the type of object.

System_CAPS_pubpropertyManagedDBConnection

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyManagedDBProvider

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyName

Gets or set the name of the object.

System_CAPS_pubpropertyObject

Provides a reference between the Visual Studio object model and the Visual C++ object model.

System_CAPS_pubpropertyOwnerKey

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyParent

Gets the immediate parent object.

System_CAPS_pubpropertyPlatforms

Gets the platforms for which this project can be built. For Visual C++, this is only Win32.

System_CAPS_pubpropertyproject

Gets the VCProject associated with the object.

System_CAPS_pubpropertyProjectDirectory

Gets the name of the directory that contains the project file.

System_CAPS_pubpropertyProjectFile

Gets the name of the project file.

System_CAPS_pubpropertyProjectGUID

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyReferences

Gets the collection of references for the selected project.

System_CAPS_pubpropertyReferencesConsumableByDesigners

Gets the collection of references that are consumable by designers in the active solution configuration.

System_CAPS_pubpropertyRootNamespace

Gets the root namespace for the specified project.

System_CAPS_pubpropertySccAuxPath

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertySccLocalPath

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertySccProjectName

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertySccProvider

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubpropertyShowAllFiles

Sets or gets whether to show all files in the solution explorer.

System_CAPS_pubpropertySupportedPlatformNames

System_CAPS_pubpropertyTargetFrameworkMoniker

Gets the name of the target framework.

System_CAPS_pubpropertyTargetFrameworkVersion

Gets or sets the version of the .NET Framework that is targeted by the project.

System_CAPS_pubpropertyToolFiles

Gets a collection of custom build rule files.

System_CAPS_pubpropertyVCProjectEngine

Gets a pointer to the project engine.

System_CAPS_pubpropertyVCReferences

Gets the collection of references for the selected project.

NameDescription
System_CAPS_pubmethodAddActiveXReference(String, Int32, Int32, Int32, String)

Adds an ActiveX (COM) reference to the project.

System_CAPS_pubmethodAddAssemblyReference(String)

Adds an assembly (.NET) reference to the selected project.

System_CAPS_pubmethodAddConfiguration(String)

Adds a configuration to the current project.

System_CAPS_pubmethodAddFile(String)

Adds a file to the current project or folder.

System_CAPS_pubmethodAddFilter(String)

Adds a folder to the current project or folder.

System_CAPS_pubmethodAddPlatform(String)

Adds a platform to the current project (not enabled for Visual C++).

System_CAPS_pubmethodAddProjectReference(Object)

Adds a project reference to the project.

System_CAPS_pubmethodAddRuleDefinition(String, String, Boolean)

Adds a rule to the project so that it is available as an IVCRulePropertyStorage.

System_CAPS_pubmethodAddSdkReference(String)

System_CAPS_pubmethodAddToolFile(VCToolFile)

Adds a custom build rule file to a project.

System_CAPS_pubmethodAddWebReference(String, String)

Adds a reference to a Web Service to the project.

System_CAPS_pubmethodAddWinRTReference(String)

System_CAPS_pubmethodCanAddActiveXReference(String, Int32, Int32, Int32, String)

Gets a value indicating whether to add the given ActiveX (COM) reference.

System_CAPS_pubmethodCanAddAssemblyReference(String)

Returns whether it is okay to add the given assembly (.NET) reference.

System_CAPS_pubmethodCanAddFile(String)

Returns true if the specified file can be added to the current project or filter.

System_CAPS_pubmethodCanAddFilter(String)

Returns true if the specified filter can be added as a top-level filter or as a subfilter to the current filter.

System_CAPS_pubmethodCanAddProjectReference(Object)

Returns whether it is okay to add the given project reference

System_CAPS_pubmethodCanAddSdkReference(String)

System_CAPS_pubmethodCanAddWinRTReference(String)

System_CAPS_pubmethodContainsFileEndingWith(String)

Indicates whether there is a file name that ends with a specified string.

System_CAPS_pubmethodContainsFileWithItemType(String)

Indicates whether there is a file whose type matches a specified type.

System_CAPS_pubmethodGetFilesEndingWith(String)

Retrieves a collection of file names whose trailing characters match a specified string.

System_CAPS_pubmethodGetFilesWithItemType(String)

Retrieves a collection of file names whose whose type matches a specified type.

System_CAPS_pubmethodGetVCService(Guid)

System_CAPS_pubmethodIncludeHeaderFile(String, String)

Adds a #include HeaderFile directive to a pre-compiled header file, or to a specified file.

System_CAPS_pubmethodLoadProjectOptions(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubmethodLoadUserFile()

Loads the user option file.

System_CAPS_pubmethodMakeManagedDBConnection(Boolean)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubmethodMatchName(String, Boolean)

Matches a specified name to the name of a collection item.

System_CAPS_pubmethodRemoveConfiguration(Object)

Removes a configuration from the current project.

System_CAPS_pubmethodRemoveFile(Object)

Removes a file from the current project or folder.

System_CAPS_pubmethodRemoveFilter(Object)

Removes a folder from the current project and any files or other folders in the folder.

System_CAPS_pubmethodRemovePlatform(Object)

Removes a platform from the current project (not enabled for Visual C++).

System_CAPS_pubmethodRemoveReference(Object)

Removes the specified reference from the project or references collection.

System_CAPS_pubmethodRemoveRuleDefinition(String)

Removes a Rule definition from the project.

System_CAPS_pubmethodRemoveToolFile(VCToolFile)

Removes a custom build rules file from the project.

System_CAPS_pubmethodSave()

This API supports the product infrastructure and is not intended to be used directly from your code. Saves the project file (.vcxproj).

System_CAPS_pubmethodSaveProjectOptions(Object)

This API supports the product infrastructure and is not intended to be used directly from your code. Microsoft Internal Use Only.

System_CAPS_pubmethodSaveUserFile()

Saves the user option file.

System_CAPS_pubmethodVersion(Int32, Int32)

Sets or returns the major and minor version numbers of the project.

' Add a reference to Microsoft.VisualStudio.VCProjectEngine and have a 
' Visual C++ project loaded before running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine
Public Module Module1
    Sub Test()
        Dim prj As VCProject
        Dim vcar As VCAssemblyReference
        Dim refcfg As VCReferenceConfiguration

        prj = DTE.Solution.Projects.Item(1).Object
        If prj.CanAddAssemblyReference("C:\Program Files\ _
        Microsoft Visual Studio 8\Common7\IDE\ _
        PublicAssemblies\envdte.dll") Then
           vcar = prj.AddAssemblyReference("C:\Program Files\ _
           Microsoft Visual Studio 8\Common7\IDE\ _
           PublicAssemblies\envdte.dll")
        End If
        refcfg = vcar.ReferenceConfigurations.Item(1)
        MsgBox("Consumable? " & refcfg.ConsumableByDesigner)
    End Sub
End Module
Return to top
Show: