none
"FindRibbons" task failed unexpectedly RRS feed

  • Question

  • Excel Addin project was created with VS2010, debugged with Excel 2010 x64.

    Upgraded to 2013, got the following build message:

      XXXXxxxxxxAddin -> C:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\bin\Debug\XXXXxxxxxxAddin.dll
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: The "FindRibbons" task failed unexpectedly.
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: System.ArgumentException: Invalid directory on URL.

    From the log file:

    Using "FindRibbons" task from assembly "Microsoft.VisualStudio.Tools.Office.BuildTasks, Version=12.0.0.0, Culture=neutral, PublicKeyToken=b03f5f7f11d50a3a".
    Task "FindRibbons" (TaskId:34)
      Task Parameter:AssemblyName=c:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\bin\Debug\;c:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\bin\Debug\XXXXxxxxxxAddin.dll (TaskId:34)
      Task Parameter:TargetFramework=v4.5.1 (TaskId:34)
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: The "FindRibbons" task failed unexpectedly.\r [c:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\XXXXxxxxxxAddin.csproj]
    C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets(176,9): error MSB4018: System.ArgumentException: Invalid directory on URL.\r [c:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\XXXXxxxxxxAddin.csproj]

    I see $(AbsolutePathToCustomization) has suspicions value:

    "c:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\bin\Debug\;c:\home\Perforce\hqperforce1_1666\yyyyyy.corp_yyyyyy5\ZzzzzzZzzzzz\Trunk\Source\UserServices\XXXXxxxxxxAddin\bin\Debug\XXXXxxxxxxAddin.dll"

    and it is longer then MAXPATH.

    build fails on

            <FindRibbons
               AssemblyName="$(AbsolutePathToCustomization)"
               TargetFramework="$(TargetFrameworkVersion)"
            >
    in C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools\Microsoft.VisualStudio.Tools.Office.targets

    Thursday, September 25, 2014 6:28 PM

All replies