Build Error + Create VSTO Add-in for Excel 2010

I am trying to create an excel add-in using VS 2010. When I create a new Excel 2010 Addin project and try to compile the solution. I get an error message.

'Error 1 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. DemoExcelAddIn1 

I downloaded the installed VS 2010 office tools. But I can not find the assembly "Microsoft.VisualStudio.Tools.Office.BuildTasks,

How can I continue. Can anyone help ..

+4
source share
3 answers

This looks like a known issue obtained from the MSDN forums - you just need to update the Microsoft.VisualStudio.Tools.Office.targets file to point to version 11.0.0.0 instead of version 10.0.0.0 .

Updating the MSBuild Target File

For those who are facing this problem, open C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v10.0 \ OfficeTools and open Microsoft.VisualStudio.Tools.Office.targets .

Replace all 10.0.0.0 with 11.0.0.0 .

+9
source

Install VS2010 SP1, which should solve your problem.

I had this problem too, I installed VS2010 SP1 and VS2013 SP4.

Greetings!

0
source

We have VS2013 installed on the build slaves, so we fixed the problem by doing the following: go to the C: \ Program Files (x86) \ MSBuild \ Microsoft \ VisualStudio \ v11.0 \ OfficeTools folder and open the Microsoft.VisualStudio.Tools file .Office.targets.

Replace all 11.0.0.0 with 12.0.0.0.

0
source

Source: https://habr.com/ru/post/1479156/


All Articles