Workspace.ApplyProjectAdded(ProjectInfo) 方法

定义

此方法是在将项目添加到当前解决方案的过程中 TryApplyChanges(Solution) 调用的。

重写此方法以实现添加项目的功能。

protected:
 virtual void ApplyProjectAdded(Microsoft::CodeAnalysis::ProjectInfo ^ project);
protected virtual void ApplyProjectAdded (Microsoft.CodeAnalysis.ProjectInfo project);
abstract member ApplyProjectAdded : Microsoft.CodeAnalysis.ProjectInfo -> unit
override this.ApplyProjectAdded : Microsoft.CodeAnalysis.ProjectInfo -> unit
Protected Overridable Sub ApplyProjectAdded (project As ProjectInfo)

参数

project
ProjectInfo

适用于