Nunit 卷影复制缓存目录巨大
我注意到最近使用了大量的磁盘空间,最后做了一些调查。我发现以下目录中有超过200 GB的数据:
C:\Users\compUser\AppData\Local\Temp\nunit20\ShadowCopyCache
我应该直接删除这些数据吗?或者 NUnit 中是否有一个函数可以对卷影复制目录进行某种清理,从而自动执行此过程并且不会破坏任何内容?
根据答案更新:
打开您最喜欢的命令提示符应用程序,导航到 NUnit 目录并运行以下命令:
nunit.exe /cleanup
根据 Shadow Cache 的大小,可能需要一些时间才能完成。
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.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
新的
/cleanup
命令行选项会删除 NUnit 的卷影副本缓存,然后退出。请参阅此处(Nunit 发行说明)了解更多信息。
这是对此目录的安全且受支持的删除。
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.
对于仍在运行 nunit 2 控制台的人来说,有一个命令行开关可以首先防止生成卷影副本(请参阅 文档):
从 nunit 3 开始,这是默认行为:不是控制台的卷影复制默认设置
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):
As of nunit 3 this is default behavior: Made not shadow copy default for console