Condividi tramite


IVsTrackProjectRetargeting.BatchRetargetProject Method

Definition

Schedules the project for batch retargeting.

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

[in] The hierarchy of the project in which the batch retarget is to occur.

newTargetFramework
String

[in] The new target framework.

unloadProjectIfErrorOrCancel
Boolean

[in] If true, the project is unloaded if an error occurs or the user cancels the operation.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to