Microsoft.GroupPolicy.Management.Interop缺少dll [英] Microsoft.GroupPolicy.Management.Interop missing 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及更早版本。您可以下载并安装它。
如果您想知道如何将GPMC程序集添加到Visual Studio项目,请查看以下链接。
如果找不到所需的版本,请在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.
If you want to know how to add the GPMC Assembly to a Visual Studio Project, please check the link below.
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屋!