Hi,
I have created my custom project templates and its working fine. I have write some logic when build the project so I have hook the event from initialize method like below,
DTE2 dte = GetService(typeof(SDTE)) as DTE2; dte.Events.BuildEvents.OnBuildBegin += new _dispBuildEvents_OnBuildBeginEventHandler(BuildEvents_OnBuildBegin);
public void BuildEvents_OnBuildBegin(EnvDTE.vsBuildScope Scope, EnvDTE.vsBuildAction Action)
{
//logic
}
This event hooks perfectly while create a fresh project from Visual Studio. But its not hooked when open an existing projects. Please help me resolve this issue or suggest any alternate way to achieve this?- Abbas K