简体   繁体   中英

Nunit Shadow Copy Cache Directory is Huge

I've noticed a huge amount of disk space being 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

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM