4

VS 2010 を使用して Excel アドインを作成しようとしています。新しいプロジェクト Excel 2010 アドインを作成し、ソリューションをコンパイルしようとしています。というエラーが表示されます。

'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

Office ランタイム用の VS 2010 ツールをダウンロードしてインストールしました。しかし、アセンブリ「Microsoft.VisualStudio.Tools.Office.BuildTasks、

どうすれば進めますか。誰か助けてくれませんか..

4

3 に答える 3

9

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

Updating MSBuild Targets File

For those who encounter this problem, go to C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v10.0\OfficeTools and open the Microsoft.VisualStudio.Tools.Office.targets file.

Replace all 10.0.0.0 with 11.0.0.0.

于 2013-05-06T14:18:06.283 に答える
0

VS2010 SP1 をインストールすると、問題が解決するはずです。

私もこの問題を抱えていたので、VS2010 SP1とVS2013 SP4をインストールしました。

乾杯 !

于 2015-07-28T13:32:02.467 に答える
0

VS2013 がビルド スレーブにインストールされているため、次の手順を実行して問題を修正しました: C:\Program Files (x86)\MSBuild\Microsoft\VisualStudio\v11.0\OfficeTools に移動し、Microsoft.VisualStudio.Tools.Office を開きます。 .targets ファイル。

すべての 11.0.0.0 を 12.0.0.0 に置き換えます。

于 2015-12-07T20:37:47.560 に答える