UFO ET IT

Microsoft.Office.Interop Visual Studio를 찾을 수 없습니다.

ufoet 2020. 11. 16. 23:16
반응형

Microsoft.Office.Interop Visual Studio를 찾을 수 없습니다.


Visual Studio에서 C #을 사용하여 이메일을 보낼 수있는 애플리케이션을 개발해야합니다. 앱은 메일 용 템플릿 등을 사용할 수 있지만 문제가 있습니다.

Office.Interop 참조를 추가하려고 할 때 찾을 수 없습니다. 즉, Outlook에서 작업 할 수 없습니다. Office가 내 컴퓨터에 설치되어 있지만 http://www.microsoft.com/en-us/download/details.aspx?id=3508 링크에서 PIA를 설치하려고하는데 아무것도 변경되지 않았습니다. MSI를 시작하면 아무 말없이 멈 춥니 다. 문제의 일부인지 모르겠습니다.)

가능한 답변을 제한 할 수있는 경우 Visual Studio 2013 Express를 사용하고 있습니다.


참조를 추가 할 때 COM 아래에서 찾아보십시오. 아래 참조를 찾을 수 있으며 필요한 경우 Microsoft Outlook 15.0 Object Library를 찾을 수 있습니다. Word, Excel 등을위한 유사한 라이브러리가 있습니다.

여기에 이미지 설명 입력

업데이트 : 개체 라이브러리에는 Interop 항목이 포함되어야합니다. 이것을 소스 파일에 추가하고 필요한 것을 찾지 못하는지 확인하십시오.

using Microsoft.Office.Interop.Outlook;

여기에 이미지 설명 입력


Visual Studio 2015를 사용 중이고이 문제가 발생하는 경우 여기 에서 VS2015 용 MS Office 개발자 도구를 설치할 수 있습니다 .


처음에 설치할 Microsoft Office 개발자 도구 를 선택하는 것을 잊었습니다 . 제 경우에는 Visual Studio Professional 2013과 2015도 있습니다.

여기에 이미지 설명 입력


함께 비주얼 스튜디오 2015 나는 다음과 같은 단계를 활성화했다.

  1. Programs and Features --> Select Visual Studio > Change
  2. Choose Modify
  3. Windows and Webdevelopment --> Tick "Microsoft Office Developer Tools"
  4. Start Update

It should work now.


You can find it at link:

C:\Windows\assembly\GAC_MSIL\Microsoft.Office.Interop.Word\15.0.0.0__71e9bce111e9429c\Microsoft.Office.Interop.Word.dll

Browse it then add references


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\


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?


You need to install Visual Studio Tools for Office Runtime Redistributable:

http://msdn.microsoft.com/en-us/library/ms178739.aspx


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


@Kjartan처럼하고 있습니다.

단계는 다음과 같습니다.

  1. Visual Studio의 "솔루션 탐색기"에서 C # 프로젝트 이름을 마우스 오른쪽 단추로 클릭하십시오.

  2. 그런 다음 "추가-> 참조-> COM-> 유형 라이브러리"를 순서대로 선택하십시오.

  3. "Microsoft Office 16.0 Object Library"를 찾아 참조에 추가합니다 (참고 : 버전 번호는 설치 한 OFFICE에 따라 다를 수 있습니다).

  4. 이렇게하면 프로젝트의 "참조"항목 아래에 "Microsoft.Office.Interop.Word"가 표시됩니다.

참고 URL : https://stackoverflow.com/questions/21986323/cannot-find-microsoft-office-interop-visual-studio

반응형