开发者

VisualStudio.bak inside Roaming folder is extremely large. Can I delete it?

When I look at the following folders, they are exteremely large.

C:\Users\MyName\AppData\Roaming\Microsoft\VisualStudio (12GB) C:\Users\MyName\AppData\Roaming\Microsoft\VisualStudio.bak (开发者_JAVA百科36GB)

What is VisualStudio.bak folder for? Can I delete VisualStudio.bak folder (since it has bak extension)?

Thanks in advance!

Answer: I found similar post here.

ReflectedSchemas folder in the user's AppData folder (Visual Studio)

http://blogs.msdn.com/b/mikhailarkhipov/archive/2004/05/14/131949.aspx


Short Answer: Yes, they are backup files created by Visual Studio for Auto Recovery.

Long Answer:

Let me explain, this is a visual studio feature to recover your solution files wherever something bad happens, and really you should keep this in mind. That auto recover can save you a lot of time when something on your system goes wrong, for example, if you laptop battery suddenly dies on you ‘seen that, done that…’

Visual studio simply creates an backup of your files with the extension .bak, you can try opening the files and see that it’s just a backup of an solution file.

But, if you keep your solution on source control you can save some time by disabling this feature, here’s how.

You need to deselect the AutoRecover setting to stop backup files if from being created:

Go to Tools->Options->Environment->AutoRecover (check that the “Show All Settings” is enabled) and just uncheck the AutoRecover option.

Tools -> Option

At this point you can clean the solution, just make a search in solution directory on your disk and delete every .bak file. And that’s it, from now visual studio will stop creating that pesky files on your solution, but keep in mind that this is a feature to help you in case something wrong happens, but if you are connected to a source control it can save you some time and spare working in you solution.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜