I am using .NET framework 4.5, FxCop 10, Jenkins 1.609.
I am trying to set static code analysis for .NET code. I refer from FAKE and set all environment. It's working fine for same project mention in referenced link.
Now I added my project and found that some of .dll can not be loaded because of following reason :
<Exception Keyword="CA0055" Kind="AssemblyLoad"> <Type>Microsoft.FxCop.Common.AssemblyLoadException</Type> <ExceptionMessage>Could not load BCSProducts.dll.</ExceptionMessage> <InnerType>Microsoft.FxCop.Sdk.FxCopException</InnerType> <InnerExceptionMessage>The first successfully loaded assembly for this project was linked against v2.0.50727. 'BCSProducts' was linked against v4.0.30319 and so cannot be analyzed from within the same project.</InnerExceptionMessage> <InnerStackTrace> at Microsoft.FxCop.Engines.Introspection.IntrospectionAnalysisEngine.CanLoadTargetFile(TargetFile target) at Microsoft.FxCop.Common.EngineManager.LoadTargets(TargetFile target, Boolean resetCounts, String loadEngine)</InnerStackTrace> </Exception>
I don't know what does this even mean. But I tried so many solutions by none of those are working,
I found solution.
The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.