IVsTrackProjectRetargeting2::OnSetTargetFramework Method (IVsHierarchy^, String^, String^, IVsSetTargetFrameworkWorkerCallback^, Boolean)

 

Occurs when the target framework is sest.

Namespace:   Microsoft.VisualStudio.Shell.Interop
Assembly:  Microsoft.VisualStudio.Shell.Interop.12.0 (in Microsoft.VisualStudio.Shell.Interop.12.0.dll)

int OnSetTargetFramework(
	IVsHierarchy^ pHier,
	String^ currentTargetFramework,
	String^ newTargetFramework,
	IVsSetTargetFrameworkWorkerCallback^ pWorkerCallback,
	bool ReloadProject
)

Parameters

pHier
Type: Microsoft.VisualStudio.Shell.Interop::IVsHierarchy^

The project hierarchy.

currentTargetFramework
Type: System::String^

The current target framework.

newTargetFramework
Type: System::String^

The new target framework.

pWorkerCallback
Type: Microsoft.VisualStudio.Shell.Interop::IVsSetTargetFrameworkWorkerCallback^

The callback.

ReloadProject
Type: System::Boolean

true to reload the project after retargeting, otherwise false.

Return Value

Type: System::Int32

The HRESULT.

Return to top
Show: