IBuildService.BuildProjectAsync 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
通过从提供程序调用生成上下文操作来生成项目
public:
System::Threading::Tasks::Task<bool> ^ BuildProjectAsync(System::String ^ projectFile, System::String ^ projectFileTarget, System::String ^ buildConfiguration, Guid buildContextType, IProgress<Microsoft::VisualStudio::Workspace::IFileContextActionProgressUpdate ^> ^ progress, System::Threading::CancellationToken cancellationToken);
public System.Threading.Tasks.Task<bool> BuildProjectAsync (string projectFile, string projectFileTarget, string buildConfiguration, Guid buildContextType, IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> progress, System.Threading.CancellationToken cancellationToken);
abstract member BuildProjectAsync : string * string * string * Guid * IProgress<Microsoft.VisualStudio.Workspace.IFileContextActionProgressUpdate> * System.Threading.CancellationToken -> System.Threading.Tasks.Task<bool>
Public Function BuildProjectAsync (projectFile As String, projectFileTarget As String, buildConfiguration As String, buildContextType As Guid, progress As IProgress(Of IFileContextActionProgressUpdate), cancellationToken As CancellationToken) As Task(Of Boolean)
参数
- projectFile
- String
项目文件上下文
- projectFileTarget
- String
可选项目目标
- buildConfiguration
- String
生成配置
- buildContextType
- Guid
所需的生成上下文类型
- progress
- IProgress<IFileContextActionProgressUpdate>
进度监视器
- cancellationToken
- CancellationToken
可选取消令牌
返回
生成成功结果的完成任务