IVsTrackProjectRetargetingEvents.OnRetargetingFailure Method

Definition

Fired if any error occurs during project retargeting.

public:
 int OnRetargetingFailure(System::String ^ projRef, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, System::String ^ fromTargetFramework, System::String ^ toTargetFramework);
public:
 int OnRetargetingFailure(Platform::String ^ projRef, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy ^ pHier, Platform::String ^ fromTargetFramework, Platform::String ^ toTargetFramework);
int OnRetargetingFailure(std::wstring const & projRef, Microsoft::VisualStudio::Shell::Interop::IVsHierarchy const & pHier, std::wstring const & fromTargetFramework, std::wstring const & toTargetFramework);
public int OnRetargetingFailure (string projRef, Microsoft.VisualStudio.Shell.Interop.IVsHierarchy pHier, string fromTargetFramework, string toTargetFramework);
abstract member OnRetargetingFailure : string * Microsoft.VisualStudio.Shell.Interop.IVsHierarchy * string * string -> int
Public Function OnRetargetingFailure (projRef As String, pHier As IVsHierarchy, fromTargetFramework As String, toTargetFramework As String) As Integer

Parameters

projRef
String

[in] The unique project reference name.

pHier
IVsHierarchy

[in] The project hierarchy in which the error occurred.

fromTargetFramework
String

[in] The current target framework of the project.

toTargetFramework
String

[in] The new target framework of the project.

Returns

If the method succeeds, it returns S_OK. If it fails, it returns an error code.

Applies to