本文介绍了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用于某些组策略工作。当我构建解决方案时,我收到此错误。


解决方案

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.

解决方案


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

08-04 00:28