IVsTrackProjectRetargeting2.OnSetTargetFramework 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.
Occurs when the target framework is sest.
public:
int OnSetTargetFramework(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::String ^ currentTargetFramework, System::String ^ newTargetFramework, Microsoft::VisualStudio::Shell::Interop::IVsSetTargetFrameworkWorkerCallback ^ pWorkerCallback, bool ReloadProject);
public:
int OnSetTargetFramework(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Platform::String ^ currentTargetFramework, Platform::String ^ newTargetFramework, Microsoft::VisualStudio::Shell::Interop::IVsSetTargetFrameworkWorkerCallback ^ pWorkerCallback, bool ReloadProject);
int OnSetTargetFramework(Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, std::wstring const & currentTargetFramework, std::wstring const & newTargetFramework, Microsoft::VisualStudio::Shell::Interop::IVsSetTargetFrameworkWorkerCallback const & pWorkerCallback, bool ReloadProject);
public int OnSetTargetFramework (Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, string currentTargetFramework, string newTargetFramework, Microsoft.VisualStudio.Shell.Interop.IVsSetTargetFrameworkWorkerCallback pWorkerCallback, bool ReloadProject);
abstract member OnSetTargetFramework : Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * string * Microsoft.VisualStudio.Shell.Interop.IVsSetTargetFrameworkWorkerCallback * bool -> int
Public Function OnSetTargetFramework (pHier As IVsHierarchy, currentTargetFramework As String, newTargetFramework As String, pWorkerCallback As IVsSetTargetFrameworkWorkerCallback, ReloadProject As Boolean) As Integer
Parameters
- pHier
- IVsHierarchy
The project hierarchy.
- currentTargetFramework
- String
The current target framework.
- newTargetFramework
- String
The new target framework.
- pWorkerCallback
- IVsSetTargetFrameworkWorkerCallback
The callback.
- ReloadProject
- Boolean
true
to reload the project after retargeting, otherwise false
.
Returns
The HRESULT.