VCProjectEngine::CreateProject Method (String^)
Visual Studio 2015
Creates a new project.
Assembly: Microsoft.VisualStudio.VCProjectEngine (in Microsoft.VisualStudio.VCProjectEngine.dll)
Parameters
- projectName
-
Type:
System::String^
Required. The name of the project (.vcxproj) file.
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
Show: