共用方式為


Solution.WithProjectFilePath(ProjectId, String) 方法

定義

建立新的方案實例,並將指定的專案更新為具有專案檔路徑。

public:
 Microsoft::CodeAnalysis::Solution ^ WithProjectFilePath(Microsoft::CodeAnalysis::ProjectId ^ projectId, System::String ^ filePath);
public Microsoft.CodeAnalysis.Solution WithProjectFilePath (Microsoft.CodeAnalysis.ProjectId projectId, string filePath);
public Microsoft.CodeAnalysis.Solution WithProjectFilePath (Microsoft.CodeAnalysis.ProjectId projectId, string? filePath);
member this.WithProjectFilePath : Microsoft.CodeAnalysis.ProjectId * string -> Microsoft.CodeAnalysis.Solution
Public Function WithProjectFilePath (projectId As ProjectId, filePath As String) As Solution

參數

projectId
ProjectId
filePath
String

傳回

適用於