VCProject.Version Method (Int32, Int32)

 

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

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

void Version(
	out int major,
	out int minor
)

Parameters

major
Type: System.Int32

An integer representing the major version of the project.

minor
Type: System.Int32

An integer representing the minor version of the project.

See How to: Compile Example Code for Project Model Extensibility for information about how to compile and run this example.

' Add a reference to Microsoft.VisualStudio.VCProjectEngine before 
' running this example.
Imports EnvDTE
Imports Microsoft.VisualStudio.VCProjectEngine

Public Module Module1
    Sub Test()
        Dim sln As Solution
        Dim prj As VCProject
        prj = DTE.Solution.Item(1).Object
        prj.Version("4", "5")
    End Sub
End Module
Return to top
Show: