visual-studio-package

MsBuild with Visual Studio 2012 Package Project

I have created .NET solution with Visual Studio 2012 Package Project (From VS2012 SDK ). With Visual Studio I successfully compile and run this project (along with entire solution) in " Debug " configuration mode, and for " Any CPU " platform. But when I try to build solution in command line using...

What is the correct way to subscribe to the EnvDTE80.DTE2.Events2.PublishEvents.OnPublishBegin?

I'm porting an VS addin to a VS Package. The package subscribes to OnBuildBegin and OnPublishBegin when the package is initialized. Visual Studio triggers OnBuildBegin as expected, but OnPublishBegin is never called. More or less the same code work in Visual Studio 2013, 2012, and 2010 as an addin....