Visual-studio – use VS 2012 to create an Office 2007 add-in

office-2007visual studiovisual studio 2012vsto

This would suggest not: http://msdn.microsoft.com/en-us/library/ee519072(v=vs.110).aspx

But, but… really?

Office 2007 is still ubiquitous – surely they've not dropped support for it already? I need to support it, and it seems like this would mean I can't use VS2012.

Or maybe this restriction only applies to the RC? (Please). Or perhaps it creates add-ins that are targetted at 2010 but can still run on 2007? (Clutching at straws).

Tell me it ain't so…

Best Answer

You can create an Office addin that targets 2010, but that still works in Office 2007. The trick is that you need to be aware of what interop types and events are present in 2007 versus 2010. If you try accessing an event or class member that doesn't exist in 2007 you will have issues.

Visual Studio 2012 only includes Office 2010 project templates. Another annoyance/limitation is that they eliminated support of Setup Projects which is how we have been releasing our plugin. Setup Projects have been replaced by InstallShield Limited Edition (ISLE).

Related Topic