IBuildService.GetDependencyBuildConfigurationAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
获取依赖项项目文件生成配置上下文
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
可选取消令牌
返回
要解析的目标项目的生成配置上下文