缺少程序集或类型引用 [英] assembly or type reference missing

查看:76
本文介绍了缺少程序集或类型引用的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我在项目中添加了Windows Media Player参考,并添加了以下代码

I added windows media player reference in my project and add code as below

WindowsMediaPlayer wmp = new WindowsMediaPlayer();



它显示缺少此类原因的汇编或类型引用..
我必须包括哪个命名空间以使其正确


在此先感谢



It shows assembly or type reference missing why happening like this..
Which namespace I have to include to make it correct


Thanks in advance

推荐答案

如果您使用的是Interop.WMPLib,请尝试使用此using WMPLib;
If you are using Interop.WMPLib then try this using WMPLib;


这篇关于缺少程序集或类型引用的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
相关文章
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆