A solution (.sln file) is a structure for organizing projects in Visual Studio. It groups one or more projects that work together to create an application.
Questions tagged [solution]
893 questions
33
votes
2 answers
Visual Studio solution file - what does the "Build.0" mean?
I'm looking at my Visual Studio .sln file as I'm customising build configurations (the reason why is a long story involving projects that won't load in VS2012).
Does anyone know what the Build.0 part of the build config section means? Does it mean…

WheretheresaWill
- 5,882
- 7
- 30
- 43
32
votes
7 answers
How do I build a solution programmatically in C#?
How do I build a C# solution programmatically?
I should be able to pass the path of a solution and get the output messages (or just build the solution). How do I achieve this in C#?
I need this because we are building a single solution for our…
user677607
32
votes
5 answers
How to show pending changes only for the currently opened solution in Visual Studio 2010 (TFS) and not the complete list of all changes?
is there a way to force Visual Studio 2010 to show pending changes only for the currently opened solution? I am working on multiple branches of the same project and changing the same files in most of the branches. It's so painful to check the…

brokenisfixed
- 653
- 1
- 9
- 21
31
votes
4 answers
Add NuGet Packages Folder to Solution File?
Nuget puts the package in my root folder(in my case my trunk folder). I am wondering is there a way to let VS 2010 know about this folder? I am using ankh svn to do my commuting so it would be really nice to have it in my solution so when I add a…

chobo2
- 83,322
- 195
- 530
- 832
30
votes
3 answers
How do you get the current solution directory from a VSPackage?
Following is how you would get the current solution directory from an add-in:
_applicationObject = (DTE2)application; // retrieved from OnConnection method
string solutionDir =…

Dave Clemmer
- 3,741
- 12
- 49
- 72
27
votes
3 answers
Visual Studio & C++: Use filters as directories
I Use Visual Studio 2012 Professional and C++. When creating so called 'filters' and adding source files to them, the files in the solution explorer are divided into sub directories, while on the file system they are all in the same directory (the…

bytecode77
- 14,163
- 30
- 110
- 141
26
votes
3 answers
Why is one project in my solution bold
In my solution, I have one project whose name is bold.
Why is ErrorHandlerLibrary bold?

jth41
- 3,808
- 9
- 59
- 109
24
votes
4 answers
Project reference VS NuGet
How should I reference to another project A from project B in the same solution?
What do I gain and what do I lose if I:
Add the reference to project A as a project reference.
Install the NuGet package of project A in project B.
Things that would…

grmbl
- 2,514
- 4
- 29
- 54
23
votes
13 answers
Recommended number of projects in Visual Studio Solution
We are starting to develop new application that will include something like 30-50 projects developed by about dozen of developers with C# in MS Visual Studio.
I am working on componentize the application modules in order to support the architecture…

Ragoler
- 1,261
- 4
- 15
- 20
21
votes
2 answers
Programmatically getting the current Visual Studio IDE solution directory from addins
I have some tools that perform updates on .NET solutions, but they need to know the directory where the solution is located.
I added these tools as External Tools, where they appear in the IDE Tools menu, and supplying $(SolutionDir) as an argument.…

Dave Clemmer
- 3,741
- 12
- 49
- 72
19
votes
2 answers
Can the working directory be set in the project (.vcproj) file?
I have a script that generates a .sln file and a few .vcproj files for visual studio 2005. I need to set the WorkingDirectory option but its specified in the .user file. A file we cannot currently generate. I found the vcproj file definition at…

Mizipzor
- 51,151
- 22
- 97
- 138
18
votes
2 answers
GUIDs in a SLN file
Visual Studio Solution files contain two GUID's per project entry. I figure one of them is from the AssemblyInfo.cs
Does anyone know for sure where these come from, and what they are used for?

FlySwat
- 172,459
- 74
- 246
- 311
18
votes
1 answer
How can I get Visual Studio to always reload changed solutions, projects and files?
I'm using multiple machines to profile and run one solution, with data synchronization done via DropBox (brilliant, btw!). Unfortunately, changes in one machine cause all other machines' VS instances to ask me whether I want to reload which is...…

Dmitri Nesteruk
- 23,067
- 22
- 97
- 166
16
votes
8 answers
What is a C# solution and how to use it?
I am new to C# (coming from Python and C) and when I start a new project in Monodevelop or Visual Studio, the project is put in a "solution" container.
I had a look at Microsoft description of what a solution is but I don't really understand the…

Jacques Gaudin
- 15,779
- 10
- 54
- 75
16
votes
5 answers
Which projects in my solution are using a project reference for a certain project?
In my solution, I have a lot of projects which use project references to other projects in the solution. How do I figure out which projects reference a particular project?

Zack
- 2,789
- 33
- 60