COM interop在ASP.5项目中 [英] COM interop in ASP.5 projects
问题描述
上下文是一个ASP.NET 5(目前为RC1)应用程序,因此使用 project.json
用于引用和 .xproj
为Visual Studio。应用程序仅针对完整的.NET 4.6框架(无.net Core支持)。
我需要使用第三方服务,它们作为COM接口公开。 / p>
将它们添加到我的项目的最佳方法是什么?我找不到任何有关这方面的信息。
我的直觉是,我需要创建一个经典.net dll使用COM组件,使用 csproj
和旧构建工具等。然后引用dll作为我的ASP.NET 5项目的二进制引用。
这似乎是对的吗?任何其他方式?
我们没有任何支持添加com引用到新的项目系统。在github上提交功能请求。
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?
We don't have any support for adding com references to the new project system. File a feature request on github.
这篇关于COM interop在ASP.5项目中的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!