IVsTrackProjectRetargeting::BatchRetargetProject Method (IVsHierarchy^, String^, Boolean)
Visual Studio 2015
Schedules the project for batch retargeting.
Assembly: Microsoft.VisualStudio.Shell.Interop.10.0 (in Microsoft.VisualStudio.Shell.Interop.10.0.dll)
int BatchRetargetProject( IVsHierarchy^ pHier, String^ newTargetFramework, bool unloadProjectIfErrorOrCancel )
Parameters
- pHier
-
Type:
Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^
[in] The hierarchy of the project in which the batch retarget is to occur.
- newTargetFramework
-
Type:
System::String^
[in] The new target framework.
- unloadProjectIfErrorOrCancel
-
Type:
System::Boolean
[in] If true, the project is unloaded if an error occurs or the user cancels the operation.
Return Value
Type: System::Int32If the method succeeds, it returns S_OK. If it fails, it returns an error code.
Show: