IBuildService.GetDependencyBuildConfigurationAsync 方法

定义

获取依赖项项目文件生成配置上下文

public:
 System::Threading::Tasks::Task<Microsoft::VisualStudio::Workspace::Build::IBuildConfigurationContext ^> ^ GetDependencyBuildConfigurationAsync(System::String ^ projectFile, System::String ^ dependencyProjectFile, Microsoft::VisualStudio::Workspace::Build::IBuildConfigurationContext ^ buildConfigurationContext, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.IBuildConfigurationContext> GetDependencyBuildConfigurationAsync (string projectFile, string dependencyProjectFile, Microsoft.VisualStudio.Workspace.Build.IBuildConfigurationContext buildConfigurationContext, System.Threading.CancellationToken cancellationToken);
abstract member GetDependencyBuildConfigurationAsync : string * string * Microsoft.VisualStudio.Workspace.Build.IBuildConfigurationContext * System.Threading.CancellationToken -> System.Threading.Tasks.Task<Microsoft.VisualStudio.Workspace.Build.IBuildConfigurationContext>
Public Function GetDependencyBuildConfigurationAsync (projectFile As String, dependencyProjectFile As String, buildConfigurationContext As IBuildConfigurationContext, cancellationToken As CancellationToken) As Task(Of IBuildConfigurationContext)

参数

projectFile
String

用于解决依赖项的目标项目

dependencyProjectFile
String

目标中的依赖项项目

buildConfigurationContext
IBuildConfigurationContext

原始生成配置上下文

cancellationToken
CancellationToken

可选取消令牌

返回

要解析的目标项目的生成配置上下文

适用于