Share via


Project 인터페이스

업데이트: 2007년 11월

IDE(통합 개발 환경)의 프로젝트를 나타냅니다.

네임스페이스:  EnvDTE
어셈블리:  EnvDTE(EnvDTE.dll)

구문

<GuidAttribute("866311E6-C887-4143-9833-645F5B93F6F1")> _
Public Interface Project

Dim instance As Project
[GuidAttribute("866311E6-C887-4143-9833-645F5B93F6F1")]
public interface Project
[GuidAttribute(L"866311E6-C887-4143-9833-645F5B93F6F1")]
public interface class Project
public interface Project

설명

솔루션의 모든 프로젝트에는 프로젝트 자동화 인터페이스가 있습니다. 드물기는 하지만 이 프로젝트 자동화 인터페이스가 프로젝트 이름을 반환하는 모델링되지 않은 일반적인 프로젝트 구현을 나타내는 경우도 있습니다.

환경에서 프로젝트를 포함하는 모든 도구에는 Project 개체가 있습니다.

DTE.Solution.Item을 사용하거나 DTE.VBProjects.Item 또는 DTE.VCProjects.Item과 같이 특정 언어의 개체를 사용하여 이 개체를 참조할 수 있습니다.

참고:

DTE.VBProjects.Item 및 DTE.VCProjects.Item 등의 프로젝트 관련 개체는 다른 어셈블리에 있고, Visual Basic 및 Visual C# 프로젝트 개체는 VSLangProj에 있으며, Visual C++ 프로젝트 개체는 Microsoft.VisualStudio.VCProjectEngine에 있습니다. 프로젝트 관련 개체 프로그래밍에 대한 자세한 내용은 Visual Basic 및 Visual C# 프로젝트 확장Visual C++ 프로젝트 모델을 참조하십시오.

예제

Sub ProjectExample()
' This function creates a solution and adds a Visual Basic Console
' project to it. 
   Dim soln As Solution2
   Dim proj As Project
   Dim msg As String
' Create a reference to the solution.
   soln = DTE.Solution
' Create a new solution.
   soln.Create("c:\temp2", "MyNewSolution")
' Create a new Visual Basic Console application project. 
' Adjust the save path as needed.
   Dim fileN As String
   fileN = soln.GetProjectTemplate("ConsoleApplication.zip", "VisualBasic")
   proj = soln.AddFromTemplate(fileN, "c:\temp2", "My New Project", True)
   
' Save the new solution
   soln.SaveAs("c:\temp2\newsolution.sln")
   msg = "Created new solution: " & soln.FullName
   MsgBox(msg)
End Sub

참고 항목

참조

Project 멤버

EnvDTE 네임스페이스

기타 리소스

프로젝트 및 솔루션 제어