Quantcast
Channel: Visual Studio Integrate forum
Viewing all articles
Browse latest Browse all 4410

FxCop error on default Analyzer + Vsix project

$
0
0

With VS2015 Enterprise I have created a new "Analyzer with Code Fix (NuGet + VSIX)" project. It works fine, but when I run the Microsoft FxCop rules on the solution I always got the following exceptions:

Warning    CA0001    CA0001 : Resolved system assembly 'C:\Program Files (x86)\Reference Assemblies\Microsoft\Framework\.NETFramework\v4.5.2\Facades\System.Runtime.dll' doesn't define type 'System.Object'. Are you sure you have provided the correct system assembly?. Provided system assembly might be a facade assembly targeting another platform, such that it has only metadata and no IL. You can verify this by executing 'ildasm.exe' on this assembly.

            
Error    CA0055    CA0055 : Could not load C:\Users\evovape3\Documents\Visual Studio 2015\Projects\Analyzer3\Analyzer3\Analyzer3.Vsix\bin\Debug\Analyzer3.dll. The following error was encountered while reading module 'System.Runtime': Assembly reference cannot be resolved: mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.      

     
Error        Code Analysis detected errors.  See Code Analysis results window or log file for details.    Analyzer3.Vsix        

Error    CA0052    CA0052 : No targets were selected.      

If I unload the Vsix project, the FxCop runs without failing.    

How can I fix this exception?

Thanks,

Peter


Viewing all articles
Browse latest Browse all 4410

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>