/// <summary> /// 'PRE' of Project. /// Before a project configuration begins to build. /// </summary> /// <param name="pHierProj">Unspecified IVsHierarchy (Microsoft.VisualStudio.Shell.Interop.dll) Pointer to a hierarchy project object.</param> /// <param name="pCfgProj">Unspecified IVsCfg (Microsoft.VisualStudio.Shell.Interop.dll) Pointer to a configuration project object.</param> /// <param name="pCfgSln">Unspecified IVsCfg (Microsoft.VisualStudio.Shell.Interop.dll) Pointer to a configuration solution object.</param> /// <param name="dwAction">Double word containing the action.</param> /// <param name="pfCancel">Pointer to a flag indicating cancel.</param> /// <returns>If the method succeeds, it returns Codes.Success. If it fails, it returns an error code.</returns> public int onProjectPre(object pHierProj, object pCfgProj, object pCfgSln, uint dwAction, ref int pfCancel) { try { return(link.onProjectPre(pHierProj, pCfgProj, pCfgSln, dwAction, ref pfCancel)); } catch (Exception ex) { Log.Error("[Client library] Failed onProjectPre: '{0}'", ex.Message); } return(Codes.Failed); }
/// <summary> /// 'PRE' of Project. /// Before a project configuration begins to build. /// </summary> /// <param name="pHierProj">Unspecified IVsHierarchy (Microsoft.VisualStudio.Shell.Interop.dll) Pointer to a hierarchy project object.</param> /// <param name="pCfgProj">Unspecified IVsCfg (Microsoft.VisualStudio.Shell.Interop.dll) Pointer to a configuration project object.</param> /// <param name="pCfgSln">Unspecified IVsCfg (Microsoft.VisualStudio.Shell.Interop.dll) Pointer to a configuration solution object.</param> /// <param name="dwAction">Double word containing the action.</param> /// <param name="pfCancel">Pointer to a flag indicating cancel.</param> /// <returns>If the method succeeds, it returns Codes.Success. If it fails, it returns an error code.</returns> public int onProjectPre(object pHierProj, object pCfgProj, object pCfgSln, uint dwAction, ref int pfCancel) { try { return(link.onProjectPre(pHierProj, pCfgProj, pCfgSln, dwAction, ref pfCancel)); } catch (Exception ex) { Log.Error($"[Client library] Failed onProjectPre: {ex.Message}"); Log.Debug(ex.StackTrace); } return(Codes.Failed); }