共用方式為


Solution.AddProject 方法

定義

多載

AddProject(ProjectId, String, String, String)

建立新的方案實例,其中包含具有指定語言和名稱的專案。

AddProject(ProjectInfo)

建立新的方案實例,其中包含具有指定專案資訊的專案。

AddProject(String, String, String)

建立新的方案實例,其中包含具有指定語言和名稱的專案。 傳回新專案。

AddProject(ProjectId, String, String, String)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

建立新的方案實例,其中包含具有指定語言和名稱的專案。

public:
 Microsoft::CodeAnalysis::Solution ^ AddProject(Microsoft::CodeAnalysis::ProjectId ^ projectId, System::String ^ name, System::String ^ assemblyName, System::String ^ language);
public Microsoft.CodeAnalysis.Solution AddProject (Microsoft.CodeAnalysis.ProjectId projectId, string name, string assemblyName, string language);
member this.AddProject : Microsoft.CodeAnalysis.ProjectId * string * string * string -> Microsoft.CodeAnalysis.Solution
Public Function AddProject (projectId As ProjectId, name As String, assemblyName As String, language As String) As Solution

參數

projectId
ProjectId
name
String
assemblyName
String
language
String

傳回

適用於

AddProject(ProjectInfo)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

建立新的方案實例,其中包含具有指定專案資訊的專案。

public:
 Microsoft::CodeAnalysis::Solution ^ AddProject(Microsoft::CodeAnalysis::ProjectInfo ^ projectInfo);
public Microsoft.CodeAnalysis.Solution AddProject (Microsoft.CodeAnalysis.ProjectInfo projectInfo);
member this.AddProject : Microsoft.CodeAnalysis.ProjectInfo -> Microsoft.CodeAnalysis.Solution
Public Function AddProject (projectInfo As ProjectInfo) As Solution

參數

projectInfo
ProjectInfo

傳回

適用於

AddProject(String, String, String)

Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs
Source:
Solution.cs

建立新的方案實例,其中包含具有指定語言和名稱的專案。 傳回新專案。

public:
 Microsoft::CodeAnalysis::Project ^ AddProject(System::String ^ name, System::String ^ assemblyName, System::String ^ language);
public Microsoft.CodeAnalysis.Project AddProject (string name, string assemblyName, string language);
member this.AddProject : string * string * string -> Microsoft.CodeAnalysis.Project
Public Function AddProject (name As String, assemblyName As String, language As String) As Project

參數

name
String
assemblyName
String
language
String

傳回

適用於