By using this site, you agree to our updated Privacy Policy and our Terms of Use. Manage your Cookies Settings.
446,382 Members | 2,068 Online
Bytes IT Community
+ Ask a Question
Need help? Post your question and get tips & solutions from a community of 446,382 IT Pros & Developers. It's quick & easy.

What is the purpose of *.sln und *.suo files and why arey outside the project folder ?

P: n/a
I found a *.sln and an *.suo file which belong to my current project because the have the same name
"TestDatabase33....." as my project.

What is the purpose of these files ?

If I delete them accidentially: Are they re-created automatically ?

Why are they currently not in the project folder (where the *.csproj file is) but in the parant folder ?

Can I simply move them to the project folder ?

Marl

May 25 '07 #1
Share this Question
Share on Google+
3 Replies


P: n/a
SLN file:
sln files are "solution files". You should leave that file where VS
put it.
http://msdn2.microsoft.com/en-us/lib...51(VS.80).aspx

SUO file:
http://forums.microsoft.com/MSDN/Sho...78139&SiteID=1
http://msdn2.microsoft.com/en-us/lib...09(VS.80).aspx
Mark Poppers a scris:
I found a *.sln and an *.suo file which belong to my current project because the have the same name
"TestDatabase33....." as my project.

What is the purpose of these files ?

If I delete them accidentially: Are they re-created automatically ?

Why are they currently not in the project folder (where the *.csproj file is) but in the parant folder ?

Can I simply move them to the project folder ?

Marl
May 25 '07 #2

P: n/a
"Mark Poppers" <m.*******@lycos.comwrote in message
news:46**********************@newsspool2.arcor-online.net...
>I found a *.sln and an *.suo file which belong to my current project
because the have the same name
"TestDatabase33....." as my project.
They are the Solution files. You can group several projects under one
solution. If you just "create a new project", a solution is created with the
same name as the project, and the project is hosted inside that solution.
What is the purpose of these files ?
.sln basically contains the list of the projects that are contained in
the solution. That's why it is outside the project folder (or projects
folders, if there are several in the solution). .suo is "solution user
options", and contains your last configuration, such as what tabs you left
open the last time you worked on the project, so they open again when you
reload the project in Visual Studio.
If I delete them accidentially: Are they re-created automatically ?
If you delete .suo, it is recreated silently. If you delete .sln, you
will no longer be able to open the whole solution at once, but you can still
open the individual projects (.csproj) that were contained in the solution.
Why are they currently not in the project folder (where the *.csproj file
is) but in the parant folder ?
Because they can apply to several projects, not only to that one.
Can I simply move them to the project folder ?
You can move the solution file to the same folder as a project, but you
have to edit the file paths inside, or remove the project from the solution
and add it back to it.
May 25 '07 #3

P: n/a

"Alberto Poblacion" <ea******************************@poblacion.orgwro te
in message news:ec**************@TK2MSFTNGP03.phx.gbl...
.suo is "solution user options", and contains your last configuration,
such as what tabs you left open the last time you worked on the project,
so they open again when you reload the project in Visual Studio.
It also contains all your breakpoints. Handy tip: Delete this file if Visual
Studio has a problem with hanging for several seconds every time it enters
debug mode.

Jon
May 25 '07 #4

This discussion thread is closed

Replies have been disabled for this discussion.