Possible to exclude from build on dev machine but still run on build server?
Hi,
This is a fantastic project. I've made good use of the [Pure] attribute on some code and then this analyzer found two places in my codebase where I was not using things correctly.
However, now that I've caught those issues I really don't need it running all the time. It hasn't slowed down my development speed, but if I do a build in Visual Studio it's a lot slower since the analzyer was installed.
I'm wondering if it's possible to still keep this in my project but just have it execute on the build server (as a final backstop) without it needing to run when I hit F6 to build my solution locally. I can see it's got its own little entry in the MSBuild *.csproj file - I suspect it's possible to do this with some configuration but I'm not 100% sure how to go about it.
Any pointers? Or is this a silly idea? Should I have seen local builds slow down significantly after installing this in the first place?
Thanks, @IanYates for the great feedback.
First of all, I'll work on the perf for the analyzers to mitigate the issue when the analyzer is enabled.
Second, I'll investigate the possibility of not running the analyzer during the build.