Wednesday, 19 December 2012

The "FindRibbons" task could not be loaded MS Office VSTO

I've recently encountered with an error in a VSTO development (an Excel Add-in) under Vs 2010 environment.   The error message I got when compiling the solution is as follows.

"The "FindRibbons" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=10.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Confirm that the <UsingTask> declaration is correct, that the assembly and all its dependencies are available, and that the task contains a public class that implements Microsoft.Build.Framework.ITask"

I have install the VS 2012 together with VS2010 recently and I did the following process to get this resolved.

1. Open "Microsoft.VisualStudio.Tools.Office.targets" File from below Location
C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools
2.  Press Ctrl+H and replace all all 10.0.0.0 text wit 11.0.0.0
3. Save the file to desktop with the same same & extension.
4. Delete the original file
5. Cut and pate the saved file to above location.
6. Close and restart VS 2010 (If Opened) 

1 comments:

Anonymous said...

Not working for me.

Post a Comment