IVsTrackProjectRetargeting2.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.
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.