4

For some major codecleanup I created a Solution including all projectfiles to make things easier. This is roughly 620 .csproj with about 12k Source-Files.

Using the cleanup on this solution will surely take ages, but that was planned. Unplanned however was the SystemOutOfMemory-Exception during the process.

Im not sure whether this is resharpers fault or visual-studio itself (noticed similiar problems with ex. CodeMaid)

I monitored taskmanager and rightbefore it was throwing the exception, memoryusage was at ~ 2.6Gb. It grew constantly during the process, so this must be some kind of "not freeing ressources thing"

Is there anything that can be configured to get rid of this problem ? Like some option that disables any kind of caching or whatever?

I know splitting up in smaller solutions would work...

Peter Ritchie
  • 35,463
  • 9
  • 80
  • 98
CSharpie
  • 9,195
  • 4
  • 44
  • 71

1 Answers1

1

We also have an extremely large solution file that, unfortuantely, I have to deal with daily. There are some configurations you can change with resharper and vs to speed things up that should also help save on memory usage. The below link helped me some:
https://resharper-support.jetbrains.com/hc/en-us/articles/206546919

Christopher Berman
  • 719
  • 1
  • 5
  • 21
bj97301
  • 342
  • 1
  • 13