Outlook Interop in .NET Core 3.0?

前端 未结 4 562
小鲜肉
小鲜肉 2021-01-04 11:05

I migrated our project from .NET Framework to .NET Core 3.0 (C#, WPF) and now I can not use Microsoft.Office.Interop.Outlook anymore, because it is not compatib

4条回答
  •  渐次进展
    2021-01-04 11:45

    This is possible in a roundabout way. Here is how:

    1. Create a temporary .NET framework project.
    2. Add the references to COM components (Microsoft.Outlook.Interop).
    3. Open that csproj file and copy the entire those components are located in, over to your .NET Core project.

    The nuget packages seem to be incompatible at the moment.

    Reference: DotNet Samples

提交回复
热议问题