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

FxCop error on Vsix project VS2015

$
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.      

There was a similar problem (https://support.microsoft.com/en-us/kb/2971005), but here the build failed. After installing Microsoft .NET Framework 4.5.2 Developer Pack the errors disappeared, but a new error appeared:

Error    CA0055    CA0055 : Could not load c:\...\visual studio 2015\Projects\Analyzer4\Analyzer4\Analyzer4.Vsix\bin\Debug\Analyzer4.dll. The following error was encountered while reading module 'mscorlib': Security attribute type does not have a default constructor: System.Security.Permissions.HostProtectionAttribute, mscorlib, Version=4.0.0.0, Culture=neutral, PublicKeyToken=b77a5c561934e089.    

I think this look a .NET issue. Do anyone has an idea how to solve this problem?

Thanks and Regards,

Peter


Viewing all articles
Browse latest Browse all 4410

Trending Articles