Nunit Shadow Copy Cache Directory is Huge
I've noticed a huge amount of disk space b开发者_如何转开发eing used recently and finally did some investigating. I found out that I have over 200 GB in the following directory:
C:\Users\compUser\AppData\Local\Temp\nunit20\ShadowCopyCache
Should I delete this data directly? Or is there a function in NUnit to do some sort of clean up for this Shadow Copy Directory that automates this process and doesn't have the potential to break anything?
Updating based on answer:
Open your favorite command prompt application, navigate to the NUnit directory and run the following command:
nunit.exe /cleanup
Depending how large the Shadow Cache is, it could take some time to finish.
A new /cleanup
commandline option deletes NUnit's shadow copy cache and then exits.
See here (Nunit release notes) for additional information.
This is a safe and supported delete of this directory.
For those of you still running nunit 2 console there is a command line switch to prevent generation of shadow copies in the first place (see documentation):
/noshadow
As of nunit 3 this is default behavior: Made not shadow copy default for console
精彩评论