I am trying to create a simple Outlook 2010 Add-In in Visual Studio 2010. However, the build fails with the following message:
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 found a similar question here: Build Error + Creating VSTO addin for excel 2010. But, the problem there was that asker had upgraded Visual Studio from 2010 to 2012. And I have not done an upgrade.
I have tried the solution to that question as well:
update your
Microsoft.VisualStudio.Tools.Office.targets
file to point to version11.0.0.0
instead of version10.0.0.0
.)
But it gives me another error (which obviously should happen, because I haven't upgraded):
The "RegisterFormRegions" task could not be loaded from the assembly Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a. Could not load file or assembly 'Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=11.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a' or one of its dependencies. The system cannot find the file specified. 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.
Update: The error still persists after re-installing Visual Studio 2010 Tools for Office Runtime.