Reputation: 4591
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?
Upvotes: 1
Views: 196
Reputation: 38764
We don't have any support for adding com references to the new project system. File a feature request on github.
Upvotes: 1
Reputation: 401
As per https://stackoverflow.com/a/27198637/3757876 it looks like you need to create a Nuget package for your com component.
This question addresses using your com component as a dll.
I used Nuget Package Explorer to pack my dll up as a nugget package.
After that, I created a local Nuget repository that my project pulls from.
Upvotes: 0