Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to stop Visual Studio from automatically creating solution files

Our projects are typically stored as single projects, and are not part of a larger solution. When I open a project, Visual studio creates a solution (sln) and soution options (suo) file in my folder. I want to stop this automatic sln and suo creation, Does anybody know how to go about doing this?

EDIT: We have several dozen individual projects, and when I do a compare to source control to find the items that need to be added/checked in, these 2 are always crapping up the list for each project.

like image 559
StingyJack Avatar asked Jan 16 '09 21:01

StingyJack


2 Answers

See if you have "Always show solution" checked under Options -> Projects and Solutions -> General. If so, uncheck it.

I believe this is unchecked by default though. I remember turning this on because I wanted solution to be created always.

like image 53
Brian Kim Avatar answered Sep 29 '22 22:09

Brian Kim


If you're using subversion, adding the "svn:ignore" property to the folder to ignore *.sln and *.suo seems like a good solution. Other version control systems have similar functionality. Consult the docs for your specific VCS.

As for actually preventing it from happening, I have no clue, but I suspect it's impossible.

like image 45
rmeador Avatar answered Sep 29 '22 23:09

rmeador