Can I run ReSharper Analysis without Visual Studio (e.g. using command line)?

4 comments

Alex,

Can we use resharper to code refactor/code clea up from command line?

 

 

0

@Asp, not at the moment. Refactorings and Code Cleanup are based on VS integration features, so currently it is not possible.

0

Alex, +1 for code cleanup from command line.

I and my teammates are working on legacy ASP.NET solution with 170 projects and more than 1*10^6 lines of code. We need to cleanup it before we start implementing new features in next release. I worked on R# + StyleCop code conventions and we need to cleanup the codebase containing .aspx, .js, .css, .cs files many of which are legacy (.cs may reach 5+ KLOC). When I try to run R# code cleanup on one single project (opened only it, not the whole solution) containing several hundreds of  .aspx, .js, .css, .cs, I see "Updating background files" in bottom right corner of Visual Studio, estimated time grows from 15 minutes to 2 hours 50 minutes, in approximately 30 minutes I get OutOfMemoryException. This happens on virtual machine with 4 cores of i5 CPU, 8 GB of RAM, SSD drive running under Windows 2008 R2, Visual Studio 2013 RC Ultimate and both R# 8.0.1 & R# 8.0.2. My questions:

  1. What is it doing when "Updating background files"? If it is not obligatory to do during cleanup, can I disable it? If yes, see p.2.

2. How do I disable this updating? Code Analysis is already disabled in Options - Code Inspection - Settings.

  1. Is there any other way to perform cleanup, like without opening project so that updating does not start at all?

Will appreciate all answers & ideas. Please give me options how to do this.

0

Please sign in to leave a comment.

Have more questions?

Submit a request