I have a Visual Studio 2012 solution /Foobar.sln
. It contains one Class Library project and one Unit Test project. A few days ago I noticed a new file /Foobar.sln.ide/graph/Foobar.sln.ide
.
Contents:
<Solution Format="0.0.0.3">
<Version>0001-01-01T00:00:00Z</Version>
</Solution>
I'm not sure what I was doing when it was created, since I didn't notice it until a few days after it was created.
Today, several days later than I first asked this question, it appeared again in an Excel VSTO Add-in project. My guess now is that it's related to closing the solution, since it appeared in between the time I committed my changes and the time I opened a new project (not a VS project, just a file being edited). I haven't reproduced it.
What created this file? What does it do? Is it safe to delete? Should it be checked in to source control?
What is SLN file? A file with . SLN extension represents a Visual Studio solution file that keeps information about the organization of projects in a solution file. The contents of such a solution file are written in plain text inside the file and can be observed/edited by opening the file in any text editor.
You need a suitable software like Visual Studio to open an SLN file.
As far as I'm aware, the SLN is a 100% Visual Studio Tooling concept. You can still create applications, run/compile/publish them without this file. That's how Visual Studio Code does it and that's how you would do it in Sublime/Atom or any other editors.
Basically a solution file can be opened by using appropriate IDE (development enviornment) For Example you need visual studio to open . net related sln file. You can also use NOTEPAD to just open and read the content of sln file. notepad will anyways not help you to compile it.
Are you using the "Roslyn" compiler. If so, this creates the .sln.ide folder in your solution folder. I believe it's to do with complier caching.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With