VCProjectEngine.CreateProject Method

Creates a new project.

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

Object CreateProject(
	string projectName
)

Parameters

projectName
Type: System.String

Required. The name of the project (.vcxproj) file.

Return Value

Type: System.Object
A VCProject object.

CreateProject cannot be called from script. It must be called from an application that created a new instance of the project engine.

' compile with vbc /r:Microsoft.VisualStudio.VCProjectEngine.dll
Option Strict Off
Imports Microsoft.VisualStudio.VCProjectEngine

Module Module1
Sub Main()
Dim Engine As VCProjectEngine
Dim myproj As VCProject
Engine = New VCProjectEngineObject()
myproj = Engine.CreateProject("xxxj")
myproj.ProjectFile("c:\Documents and Settings\test\xxx.vcxproj");
myproj.Save()
End Sub    
End Module

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft