Microsoft.GroupPolicy.Management.Interop缺少dll [英] Microsoft.GroupPolicy.Management.Interop missing dll

查看:79
本文介绍了Microsoft.GroupPolicy.Management.Interop缺少dll的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

错误 -  


" Microsoft.GroupPolicy.Management,Version = 2.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35,processorArchitecture = MSIL"无法解析因为它对程序集具有间接依赖性"Microsoft.GroupPolicy.Management.Interop,
Version = 2.0.0.0,Culture = neutral,PublicKeyToken = 31bf3856ad364e35"它是针对".NETFramework,Version = v4.5"而构建的。框架。这是一个比当前目标框架更高的版本".NETFramework,Version = v3.5"



我使用的是Microsoft.GroupPolicy .Management.dll用于某些组策略工作。当我构建解决方案时,我收到此错误。


解决方案

您好vivekbsnl30 ,


感谢您发布此处。


对于您的问题,您在计算机上安装了哪个GPMC?你的电脑版本是什么? msdn文档仅支持Windows 7及更早版本。您可以下载并安装它。


https://msdn.microsoft.com/en-us/library/windows/desktop/ff182374%28v=vs.85%29.aspx?f=255&MSPPError = -2147217396


如果您想知道如何将GPMC程序集添加到Visual Studio项目,请查看以下链接。


https: //msdn.microsoft.com/en-us/library/windows/desktop/ff519502%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396


如果找不到所需的版本,请在UserVoice中发布您想要的内容。请反馈链接,我会投票给它以引起微软支持团队的注意。


https://microsoftteams.uservoice.com/forums/555103-public


最诚挚的问候,


Wendy


Error - 

"Microsoft.GroupPolicy.Management, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35, processorArchitecture=MSIL" could not be resolved because it has an indirect dependency on the assembly "Microsoft.GroupPolicy.Management.Interop, Version=2.0.0.0, Culture=neutral, PublicKeyToken=31bf3856ad364e35" which was built against the ".NETFramework,Version=v4.5" framework. This is a higher version than the currently targeted framework ".NETFramework,Version=v3.5"

I was using Microsoft.GroupPolicy.Management.dll for some group policy work. when I build the solution I am getting this error.

解决方案

Hi vivekbsnl30,

Thank you for posting here.

For your question, which GPMC you installed on your computer? And what is the version of your computer? The msdn document only support for windows 7 and earlier version. You could download and install it.

https://msdn.microsoft.com/en-us/library/windows/desktop/ff182374%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

If you want to know how to add the GPMC Assembly to a Visual Studio Project, please check the link below.

https://msdn.microsoft.com/en-us/library/windows/desktop/ff519502%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396

If you do not find the version you want, please post what you want in UserVoice. And please feedback the link, I will vote it to cause attention of Microsoft support team.

https://microsoftteams.uservoice.com/forums/555103-public

Best Regards,

Wendy


这篇关于Microsoft.GroupPolicy.Management.Interop缺少dll的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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