VS2017无法添加对C#项目的引用。

编程入门 行业动态 更新时间:2024-10-26 20:32:09
本文介绍了VS2017无法添加对C#项目的引用。的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧! 问题描述

您好, 我正在尝试添加对C#项目的引用。引用从TLB文件导入。我做"添加参考/浏览"并指定所需的TLB文件。在我点击"确定"后,VS2017向我显示以下消息:"对< file name>的引用;无法添加。确保该文件可访问,并且它是有效的程序集或COM组件。当我用OleView打开相同的文件时,我可以看到从这个类型库生成的有效IDL。我在这里缺少什么? 有问题的TLB可以在以下链接找到:

Hello, I am trying to add a reference to a C# project. The reference is imported from a TLB file. I do "Add reference/Browse" and specify the required TLB file. After I hit "OK", VS2017 shows me the following message: "A reference to <file name> could not be added. Make sure that the file is accessible, and that it is a valid assembly or COM component." When I open the same file with OleView, I can see a valid IDL generated from this type library. What am I missing here? The TLB in question can be found at the link below:

1drv.ms/u/s!AkX9Ou21NcEig9FcEVdnTnjXKbVcOg

1drv.ms/u/s!AkX9Ou21NcEig9FcEVdnTnjXKbVcOg

推荐答案

一个TLB是一个COM解决方案,它有助于访问COM DLL。它不是集会,它不是.NET解决方案,也不是.NET项目。 A TLB is a COM solution, which helps to access a COM DLL. it not an assembly, it's not a .NET solution and it is not a .NET project.

更多推荐

VS2017无法添加对C#项目的引用。

本文发布于:2023-11-06 17:44:45,感谢您对本站的认可!
本文链接:https://www.elefans.com/category/jswz/34/1564366.html
版权声明:本站内容均来自互联网,仅供演示用,请勿用于商业和其他非法用途。如果侵犯了您的权益请与我们联系,我们将在24小时内删除。
本文标签:项目

发布评论

评论列表 (有 0 条评论)
草根站长

>www.elefans.com

编程频道|电子爱好者 - 技术资讯及电子产品介绍!