Search code examples
.netcomasp.net-core

COM interop in ASP.5 projects


The context is an ASP.NET 5 (RC1 at the moment) application, so using project.json for references and .xproj for Visual Studio. The application targets the full .NET 4.6 framework only (no .net Core support).

I need to use third-party services, which are exposed as COM interfaces.

What is the best way to add them to my project? I couldn't find any information about that.

My intuition is that I'll need to create a "classic" .net dll that uses the COM component, using csproj and the "old" build tools, etc. And then reference that dll as a binary reference from my ASP.NET 5 project.

Does that seem right? Any other way?


Solution

  • We don't have any support for adding com references to the new project system. File a feature request on github.