Build error with VS 2010 and FindRibbons

I have VS 2010, 2012 and 2013. I have an existing project from svn, so it has never been on my machine before. When I tried to compile, I got the following error

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 several posts about switching to

C: \ Program Files (X86) \ MSBuild \ Microsoft \ VisualStudio \ v10.0 \ OfficeTools

open Microsoft.VisualStudio.Tools.Office.targets and replace all 10.0.0.0 with 12.0.0.0 that I did

but then received the following error:

The "FindRibbons" task has been declared or used incorrectly, or failed during construction. Check the spelling of the task name and the assembly name.
+4
source share
2 answers

, DLL Hell, Microsoft.VisualStudio.Tools.Office.BuildTasks.dll, GAC. FindRibbons.

, VS2012 DLL, . MSDN. , , . , - Visual Studio , .

, MSDN , VS2012 , VS2010. <bindingRedirect> -, 10.0.0.0 11.0.0.0 12.0.0.0, VS2013. , , .

, , DLL Hell . :

  • Visual Studio . VS2013. .csproj (Notepad will do) ToolsVersion "12.0".

  • GAC DLL. , , DLL. , C:\Windows\Microsoft.NET\assembly\GAC_MSIL\Microsoft.VisualStudio.Tools.Office.BuildTasks. , , , VS2013. DLL 12.0 8/7/2014 102 688 . , Reflector ILSpy, , FindRibbons.

, , - . , , VS2012. setup.exe/uninstall/force . , .  -

+2

csproj <ItemGroup>, <Reference Include="Findribbons"> <HintPath>. , , ( ) , .

, , ( ).

0

All Articles