Saturday, December 14, 2013

Upgrading Office project from Visual Studio 2008 to Visual Studio 2012 (Targetting Framework 4.0/4.5)

Upgrading Office project from Visual Studio 2008 to Visual Studio 2012 (Targetting Framework 4.0/4.5).

All hell broke loose when I opened my 2008 visual studio office project in Visual Studio 2012 hoping that VS will take care of the upgrade seamlessly.

It upgraded and gave me a report that all is well. (Well the deployment project failed to upgrade as that option was removed. About that in probably another post).

Went ahead and tried to build the solution. bam !!. 105 errors. Mainly in the ribbon's designer file.

The common error:
'New' cannot be used on an interface

What...
When did the class change to an interface...

Me.Separator1 = New Microsoft.Office.Tools.Ribbon.RibbonSeparator
fails.

Me.MyButton1= New Microsoft.Office.Tools.Ribbon.RibbonButton
fails

Finally found the link that saved me from all those errors:
http://msdn.microsoft.com/en-us/library/ee712589.aspx

No comments:

Post a Comment