c# - FX COP Could not resolve type reference: System.Windows.Input.ICommand -


having troubles fxcop on our buildagent , through command line tool only.

i using caliburn.mirco framework , added custom trigger can use delete button. class implements icommand interface

the error : "the following error encountered while reading module 'myproject.ui': not resolve type reference: [system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]system.windows.input.icommand"

the full error log

<?xml version="1.0" encoding="utf-8"?> <?xml-stylesheet type="text/xsl" href="c:\buildagent\work\program files\microsoft fxcop 1.36\xml\fxcopreport.xsl"?> <fxcopreport version="10.0">  <localized>   <string key="category">category</string>   <string key="certainty">certainty</string>   <string key="collapseall">collapse all</string>   <string key="checkid">check id</string>   <string key="error">error</string>   <string key="errors">error(s)</string>   <string key="expandall">expand all</string>   <string key="help">help</string>   <string key="line">line</string>   <string key="messages">message(s)</string>   <string key="locationnotstoredinpdb">[location not stored in pdb]</string>   <string key="project">project</string>   <string key="resolution">resolution</string>   <string key="rule">rule</string>   <string key="rulefile">rule file</string>   <string key="ruledescription">rule description</string>   <string key="source">source</string>   <string key="status">status</string>   <string key="target">target</string>   <string key="warning">warning</string>   <string key="warnings">warning(s)</string>   <string key="reporttitle">code analysis report</string>  </localized>  <exceptions>   <exception keyword="ca0001" kind="engine">    <type>microsoft.fxcop.sdk.fxcopexception</type>    <exceptionmessage>an unhandled exception encountered during loadtargetsforanalysis:</exceptionmessage>    <innertype>microsoft.fxcop.sdk.invalidmetadataexception</innertype>    <innerexceptionmessage>the following error encountered while reading module 'myproject.ui': not resolve type reference: [system, version=4.0.0.0, culture=neutral, publickeytoken=b77a5c561934e089]system.windows.input.icommand.</innerexceptionmessage>    <innerstacktrace>   @ microsoft.fxcop.sdk.reader.handleerror(modulenode mod, string errormessage)    @ microsoft.fxcop.sdk.reader.getdummytypenode(identifier namesp, identifier name, modulenode declaringmodule, typenode declaringtype, boolean expectstruct)    @ microsoft.fxcop.sdk.reader.gettypefromref(int32 i, boolean expectstruct)    @ microsoft.fxcop.sdk.reader.decodeandgettypedeforreforspec(int32 codedindex)    @ microsoft.fxcop.sdk.reader.getinterfaces(int32 i, int32 firstinterfaceindex, interfacecollection interfaces)    @ microsoft.fxcop.sdk.reader.gettypefromdefhelper(int32 i)    @ microsoft.fxcop.sdk.reader.gettypefromdef(int32 i)    @ microsoft.fxcop.sdk.reader.gettypelist(modulenode module)    @ microsoft.fxcop.sdk.modulenode.get_types()    @ microsoft.fxcop.engines.introspection.introspectionanalysisengine.loadtargetsforanalysis(targetfiledictionary targetfiles, int32 loadthreadcount)    @ microsoft.fxcop.engines.introspection.introspectionanalysisengine.analyzeinternal()</innerstacktrace>   </exception>   <exception keyword="ca0001" kind="engine">    <type>microsoft.fxcop.sdk.fxcopexception</type>    <exceptionmessage>an unhandled exception encountered during globalbeforeanalysis:</exceptionmessage>    <innertype>system.nullreferenceexception</innertype>    <innerexceptionmessage>object reference not set instance of object.</innerexceptionmessage>    <innerstacktrace>   @ microsoft.fxcop.sdk.internalutilities.globalbeforeanalysis()    @ microsoft.fxcop.engines.introspection.introspectionanalysisengine.analyzeinternal()</innerstacktrace>   </exception>  </exceptions> </fxcopreport> 

have tried passing /gac option? there /directory tell fxcop load required assemblies folder(s).

there many more options available.


Comments

Popular posts from this blog

jquery - How can I dynamically add a browser tab? -

node.js - Getting the socket id,user id pair of a logged in user(s) -

keyboard - C++ GetAsyncKeyState alternative -