Ryan Davis commented on Bug JENKINS-18151

I found another potential source. If FxCop can't find all your assemblies, it will throw warnings and mark the build as unstable.

http://stackoverflow.com/questions/12120741/code-analysis-error-could-not-load-file-or-assembly-system-net-http-version-2

You can tell fxcop to scan the global assembly cache (/gac flag), or sometimes you need to change the FxCopCmd.exe.config file to change it's assembly lookup strategy. On a different project than the one above I had this error in my output:

NOTE: One or more referenced assemblies could not be found. Use the '/directory' or '/reference' switch to specify additional assembly reference search paths.

I had to change FxCopCmd.exe.config to set

<add key="AssemblyReferenceResolveMode" value="StrongNameIgnoringVersion" />
.

This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators.
For more information on JIRA, see: http://www.atlassian.com/software/jira

--
You received this message because you are subscribed to the Google Groups "Jenkins Issues" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.
 
 

Reply via email to