IVsTrackProjectRetargeting.BatchRetargetProject Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.