Visual Studio 2010 - C++ project - remove *.sdf file
You can safely delete the file. Visual Studio will rebuild the file the next time the solution is opened.
for sake of completeness, you can safely delete: - *.sdf - Debug folders (usually at two levels) - ipch folder (c#)
You can safely delete the .sdf file and ipch folder but you can also stop VS from putting those files in the project folder in the first place. (Useful if you have your source in an SVN or other synchronised folder, or if you store your project on a small volume like a USB stick or SSD and you don't want those large files stored in the same folder)
Go to Tools -> Options -> Text Editor -> C/C++ -> Advanced
In the "Fallback Location", set "Always Use Fallback Location" to True
and "Do Not Warn If Fallback Location Used" to True
.
In "Fallback Location" you can either put a path like C:\Temp
or if you leave it blank then VS will use the temporary directory in your AppData folder.
The short answer is yes, you can safely delete the .sdf file.
However, note that you can actually prevent VS from creating .sdf files in the first place by setting the following option to True
:
Tools -> Options -> Text Editor -> C/C++ -> Advanced -> Disable Database