Share via


IVsTrackProjectRetargeting2.OnSetTargetFramework Method

Definition

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.

Implements

Applies to