Compartilhar via


IVsTrackProjectRetargetingEvents.OnRetargetingBeforeProjectSave Method

Definition

Fired just before the project file is saved.

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

Parameters

projRef
String

[in] The unique project reference name.

pBeforeChangeHier
IVsHierarchy

[in] The project hierarchy before the change.

currentTargetFramework
String

[in] The current target framework of the project.

newTargetFramework
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