Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

What is the purpose of the .sln.ide folder?

I'm trying out Visual Studio 14 CTP 2 and noticed there's this .sln.ide folder:

enter image description here

There have been a few questions going around about the .sln.ide (see this, this and this), but two of them are about a file (not folder) with that extension in Visual Studio 2012 (not 2014), and the remaining question is unanswered.

From the hints I've seen in those questions, it appears that the folder is created by the Roslyn compiler for caching purposes. However, I've been unable to find a source that explains exactly what it does.

So what is the purpose of that folder, and how is it used?

like image 846
Gigi Avatar asked Aug 17 '14 12:08

Gigi


People also ask

What is a SLN file in Visual Studio?

sln file. The . sln file contains text-based information the environment uses to find and load the name-value parameters for the persisted data and the project VSPackages it references. When a user opens a solution, the environment cycles through the preSolution , Project , and postSolution information in the .

How do I read .SLN files?

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.

Should you place solution and project in the same directory?

Creating a Solution NET will create a new solution with the same name as the project, placing the solution files in the same directory as the project. Although this works fine for small projects, it isn't well suited to more complex applications.


2 Answers

It

...is used by Roslyn Compiler engine to store temporary files.

See: http://blogs.msdn.com/b/webdev/archive/2014/06/03/announcing-web-features-in-visual-studio-14-ctp.aspx

like image 120
Ivan Hamilton Avatar answered Oct 08 '22 03:10

Ivan Hamilton


As my inspect, Visual Studio 2015 RTM never use this folder again, you can delete it. If you had used .tfignore/.gitignore to ignore .sln.ide, you can delete it too. Cause it won't be generated anymore.

It now uses hidden .vs folder, with the same files in .vs\(solution name)\v14\vbcs.cache. Some of them have .vs\(solution name)\vbcs.cache, I believe it has been used in some preview versions of VS 2015, already been replaced by v14\vbcs.cache and can be deleted too. And also you can delete (solution name).v14.suo because it's been replaced by .vs\(solution name)\v14\.suo.

like image 38
ChrisTorng Avatar answered Oct 08 '22 03:10

ChrisTorng