Cannot find Microsoft.Office.Interop Visual Studio

后端 未结 10 1481
清酒与你
清酒与你 2020-11-28 09:25

I need to develop an application which will has the capability to send emails using C# with visual studio. The app will be able to use templates for mail, and a lot of thing

相关标签:
10条回答
  • 2020-11-28 09:44

    I had the same issue with Visual Studio Community 2013, I fixed it downloading and installing the latest update of Office Developer Tools for Visual Studio 2013. Now I am able to see the whole Microsoft.Office.Interop.* list when I go to

    Add References > Assemblies > Extensions

    you can download it from here:

    https://www.visualstudio.com/en-us/news/vs2013-update4-rtm-vs.aspx#Office
    http://aka.ms/OfficeDevToolsForVS2013

    0 讨论(0)
  • 2020-11-28 09:45

    I forgot to select Microsoft Office Developer Tools for installation initially. In my case Visual Studio Professional 2013 and also 2015.

    enter image description here

    0 讨论(0)
  • 2020-11-28 09:45

    I think you need to run that .msi to install the dlls. After I ran that .msi I can go to (VS 2012) Add References > Assemblies > Extensions and all of the Microsoft.Office.Interop dlls are there.

    On my computer the dlls are found in "c:\Program Files(x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA" so you could check in a similar/equivalent directory on yours just to make sure they're not there?

    0 讨论(0)
  • 2020-11-28 09:51

    If you have installed latest Visual studio and want to To locate library of Microsoft.Office.Interop.Outlook or any other Microsoft.Office.Interop library then you should look into below 2 folders:

    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office14
    
    C:\Program Files (x86)\Microsoft Visual Studio 12.0\Visual Studio Tools for Office\PIA\Office15
    

    Please note that folder could be C:\Program Files\

    0 讨论(0)
提交回复
热议问题