專案檔「*.csproj」,開啟編輯其XML檔;
節點:「ProjectExtensions \ VisualStudio \ FlavorProperties \ ProjectProperties」;
改其值:「OfficeVersion="14.0"」
    「DebugInfoExeName="#Software\Microsoft\Office\14.0\Word\InstallRoot\Path#WINWORD.EXE"」。

參考:Cannot debug or run Word AddIn because the required version of Microsoft Office is not installed

 

arrow
arrow

    Robert 發表在 痞客邦 留言(0) 人氣()