Welcome Guest! To enable all features please Login or Register.

Notification

Icon
Error

FxCop (CodeAnalysis) is running during NCrunch build
Mangust
#1 Posted : Friday, November 16, 2012 10:44:57 AM(UTC)
Rank: Member

Groups: Registered
Joined: 11/16/2012(UTC)
Posts: 25
Location: Norway

Was thanked: 4 time(s) in 4 post(s)
Hi, I have noticed that during build in NCrunch it does the code analysis run as per my regular build. Is it possible to tell NCrunch not to do the code analysis when it's building? It seems pretty superfluous to do that. And takes a lot of time as well.
Remco
#2 Posted : Friday, November 16, 2012 10:45:12 PM(UTC)
Rank: NCrunch Developer

Groups: Administrators
Joined: 4/16/2011(UTC)
Posts: 7,161

Thanks: 964 times
Was thanked: 1296 time(s) in 1202 post(s)
Hi, thanks for posting!

The best way to handle this situation would be to find the property or build step inside your .proj that involves executing FxCop, and marking it with a condition so that it will only execute if NCrunch isn't present.

You'll find an example of how to implement this conditional build behaviour in the documentation.

if you're running Code Contracts, also make sure you have the NCrunch configuration setting Allow Static Code Contract Checking disabled, as this can also significantly increase your build times.

I hope this helps.


Cheers,

Remco
Users browsing this topic
Guest
Forum Jump  
You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.

YAF | YAF © 2003-2011, Yet Another Forum.NET
This page was generated in 0.021 seconds.
Trial NCrunch
Take NCrunch for a spin
Do your fingers a favour and supercharge your testing workflow
Free Download