Resharper as build tool?

Hi,

I like getting the Resharper warnings in the VS gutter. I also like my
project build to 'fail' if I get any compiler warnings[1] (because I'm a
bit pedantic about coding standards).

So, what I would really like is for my project's build to fail if there
is any code in the project that Resharper considers a warning. I know
this is a bit of a longshot, but maybe its not too bad considering my
project's automated build uses the command line version of 'devenv' to
compile anyway.

So, any chance of hooking up Resharper as a command line tool, or as an
event in the VS compile process?

Thanks,

Mike

Assuming I can switch certain warnings off globally for a project,
that is.

3 comments
Comment actions Permalink

Is this different than setting "Warning Level = 1" and "Treat Warnings As
Errors = true"?

VS.NET -> Project Properties -> Configuration Properties -> Build -> Errors
and Warnings


/jhd

"Mike Roberts" <mike.roberts@removethis.tmorph.com> wrote in message
news:cb9lcm$hdd$1@is.intellij.net...

Hi,

>

I like getting the Resharper warnings in the VS gutter. I also like my
project build to 'fail' if I get any compiler warnings[1] (because I'm a
bit pedantic about coding standards).

>

So, what I would really like is for my project's build to fail if there
is any code in the project that Resharper considers a warning. I know
this is a bit of a longshot, but maybe its not too bad considering my
project's automated build uses the command line version of 'devenv' to
compile anyway.

>

So, any chance of hooking up Resharper as a command line tool, or as an
event in the VS compile process?

>

Thanks,

>

Mike

>

Assuming I can switch certain warnings off globally for a project,
that is.



0
Comment actions Permalink

John Dhom wrote:

Is this different than setting "Warning Level = 1" and "Treat Warnings As
Errors = true"?


Yes, for example Resharper flags an unnecessary 'using' as a warning. We
already use the setting you suggest, but thanks for the tip! :)

Mike

0
Comment actions Permalink

Ah, I get it.

Best,
/jhd

"Mike Roberts" <mike.roberts@removethis.tmorph.com> wrote in message
news:cbbhb2$lv4$1@is.intellij.net...

John Dhom wrote:

Is this different than setting "Warning Level = 1" and "Treat Warnings

As

Errors = true"?

>

Yes, for example Resharper flags an unnecessary 'using' as a warning. We
already use the setting you suggest, but thanks for the tip! :)

>

Mike



0

Please sign in to leave a comment.