IVsTrackProjectRetargeting2.BatchRetargetProject 方法

定义

执行指定项目的批处理重定目标。

public:
 int BatchRetargetProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::String ^ newTargetFramework, bool unloadProjectIfErrorOrCancel);
public:
 int BatchRetargetProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Platform::String ^ newTargetFramework, bool unloadProjectIfErrorOrCancel);
int BatchRetargetProject(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, std::wstring const & newTargetFramework, bool unloadProjectIfErrorOrCancel);
public int BatchRetargetProject (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, string newTargetFramework, bool unloadProjectIfErrorOrCancel);
abstract member BatchRetargetProject : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * bool -> int
Public Function BatchRetargetProject (pHier As IVsHierarchy, newTargetFramework As String, unloadProjectIfErrorOrCancel As Boolean) As Integer

参数

pHier
IVsHierarchy

项目层次结构。

newTargetFramework
String

新的目标框架。

unloadProjectIfErrorOrCancel
Boolean

true 如果出现错误,则卸载项目; 否则为 false

返回

Int32

此 HRESULT。

实现

适用于