I trying to create a extension where it will trigger when the solution is started build but i face method not implemented error when i try to clean the solution . I have attached the code and what i need is When the solution is build i need to skip the UpdateSolution_begin method, i tried checking for build action type but i am unable to get hope someone can help me
Thanks in advance
#region IVsUpdateSolutionEvents2 Members
public int UpdateSolution_Begin(ref int pfCancelUpdate)
{
bool codeCompiledSuccessfully = true;
//add your code
if (!codeCompiledSuccessfully)
{
pfCancelUpdate = 1;
}
return VSConstants.S_OK;
}
public int UpdateSolution_Done(int fSucceeded, int fModified, int fCancelCommand)
{
if (fSucceeded == 1)
{
}
return VSConstants.S_OK;
}
public int UpdateSolution_StartUpdate(ref int pfCancelUpdate)
{
return VSConstants.S_OK;
}
public int UpdateSolution_Cancel()
{
return VSConstants.S_OK;
}
public int OnActiveProjectCfgChange(IVsHierarchy pIVsHierarchy)
{
return VSConstants.S_OK;
}
public int UpdateProjectCfg_Begin(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, ref int pfCancel)
{
return VSConstants.S_OK;
}
public int UpdateProjectCfg_Done(IVsHierarchy pHierProj, IVsCfg pCfgProj, IVsCfg pCfgSln, uint dwAction, int fSuccess, int fCancel)
{
return VSConstants.S_OK;
}
#endregion