Build Error + Creating VSTO addin for excel 2010

后端 未结 3 1534
慢半拍i
慢半拍i 2021-01-13 14:26

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

\'Er         


        
3条回答
  •  萌比男神i
    2021-01-13 14:56

    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.

提交回复
热议问题