This topic has not yet been rated - Rate this topic

_Solution.Create Method

Creates an empty solution in the specified directory with the specified name.

Namespace:  EnvDTE
Assembly:  EnvDTE (in EnvDTE.dll)
void Create(
	string Destination,
	string Name
)

Parameters

Destination
Type: System.String

Required. The directory in which to create the .sln and .suo (solution) files.

Name
Type: System.String

Required. The name to display in Solution Explorer. This is also the base name of the .sln and .suo files.

Sub CreateExample()
   ' Open a solution before running this example.
   Dim soln As Solution

   ' Create a reference to the solution.
   soln = DTE.Solution

   ' Create a new solution.
   soln.Create("c:\temp", "ANewSoln.sln")
End Sub
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.