Calling Resharper from a build machine

Is it possible to invoke Resharper code standards checks from the command line? The intention is to add an extra step in a continuous integration build machine where the C# source code can be checked against the coding standards.
Any help will be appreciated.

12 comments
Comment actions Permalink

Hello Gustavo,

currently ReSharper has no interface from running in a standalone batch application.
However, it is possible
to write such an application that provides the functionality you're looking
for using ReSharper OpenAPI.

Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


Is it possible to invoke Resharper code standards checks from the
command line? The intention is to add an extra step in a continuous
integration build machine where the C# source code can be checked
against the coding standards.

Any help will be appreciated.



0
Comment actions Permalink

OK, perhaps I wasn't very clear - what I meant, it is certainly possible
(and actually we have a such kind of application internally),
but requires some work.

Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


Hello Gustavo,

currently ReSharper has no interface from running in a standalone
batch application.
However, it is possible
to write such an application that provides the functionality you're
looking
for using ReSharper OpenAPI.
Dmitry Shaporenkov
JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"

>> Is it possible to invoke Resharper code standards checks from the
>> command line? The intention is to add an extra step in a continuous
>> integration build machine where the C# source code can be checked
>> against the coding standards.
>>
>> Any help will be appreciated.
>>


0
Comment actions Permalink

Hello,

Related to this thread, I would like to know if the last version of Resharper, 4.5 contains the possibility to call the code inspection from the command line or there is any plug-in to help the integration with a build machine

Thank you

0
Comment actions Permalink

Hello Pavel,

No, not yet.

Sincerely,
Ilya Ryzhenkov

JetBrains, Inc
http://www.jetbrains.com
"Develop with pleasure!"


PR> Hello,
PR>
PR> Related to this thread, I would like to know if the last version of
PR> Resharper, 4.5 contains the possibility to call the code inspection
PR> from the command line or there is any plug-in to help the
PR> integration with a build machine
PR>
PR> Thank you
PR>
PR> ---
PR> Original message URL:
PR> http://www.jetbrains.net/devnet/message/5236257#5236257


0
Comment actions Permalink

Just counting page views this looks like a feature in high demand.  Perhaps you could release a sample of how you do this internally?  I'm not bad with msbuild I could probably adapt it to my local situation if I had some idea of where to start.

I find Resharper is very useful personally, but if I can't automate enforcement of the rules, my team can't use it.

0
Comment actions Permalink

Can we invoke ReSharper features in the current Version from command line .. need it for TFS build integration.

0
Comment actions Permalink

I agree, this would be very desirable for TFS automated builds.

0
Comment actions Permalink

Still no support for command line in version 7? This is a crucial feature that would make a useful product indespensible. Is this on your roadmap?

0
Comment actions Permalink

Hello Robert
     Similar functionality is already available as part of our TeamCity product. You can find out more here: http://blogs.jetbrains.com/teamcity/2011/10/13/now-we-see-dead-code-too/. Thank you!

Andrey Serebryansky

Software Developer

JetBrains, Inc

http://www.jetbrains.com

"Develop with pleasure!"

0
Comment actions Permalink

In that thread:

"TeamCity will not require ReSharper license for this functionality, but it will not be possible to use command line inspections tool outside of TeamCity."

So how about allowing command line inspections outside of TeamCity if you do have a ReSharper license? I'm trying to get ReSharper adopted throught the organization and this is a big issue. Not going to switch our CI server any time soon so command line ReSharper would make a big difference.

0
Comment actions Permalink

Here we can only work with TFS.

0
Comment actions Permalink

This is finally available starting from ReSharper 8 EAP. Learn more...

0

Please sign in to leave a comment.