Share via


IVsTrackProjectRetargeting2.BatchRetargetProject Method

Definition

Performs a batch retargeting of the specified project.

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

Parameters

pHier
IVsHierarchy

The project hierarchy.

newTargetFramework
String

The new target framework.

unloadProjectIfErrorOrCancel
Boolean

true to unload the project if there is an error, otherwise false.

Returns

The HRESULT.

Implements

Applies to