파워포인트를 수정하기 위해 C#을 사용하려고 하는 중에 https://www.free-power-point-templates.com/articles/create-powerpoint-ppt-programmatically-using-c/ 이런 튜토리얼 발견

문제는 다음과 같은 dll을 사용한다는 것인데 

using Microsoft.Office.Interop.PowerPoint;

using Microsoft.Office.Core;

어디서 다운받는건지 모르겠다는 것이다.

어떤 곳에서는 office 구입 시 제공되는 거라는 답변도 있는데 결과적으로는 https://www.nuget.org/packages/Microsoft.Office.Interop.PowerPoint/15.0.4420.1017

이 사이트로 향하게 된다. 


너겟이라는 곳은 .NET를 위한 패키지 관리소( https://docs.microsoft.com/en-us/nuget/what-is-nuget )

VS2015 에서 작성중인데 참조에서 오른쪽 클릭하면 바로 nuget에서 패키지를 설치할 수 있는 옵션이 gui로 제공된다.

검색하고 설치하면 간단하게 해결된다.

자세한 문서는 다음을 참고

https://docs.microsoft.com/en-us/nuget/quickstart/install-and-use-a-package-in-visual-studio

https://docs.microsoft.com/ko-kr/nuget/tools/package-manager-ui

+ Recent posts