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
15
votes
8 answers
Namespaces and folder structures in c# solutions: how should folders on disk be organised?
First off, let’s agree that namespace should match folder structure and that each language artefact should be in its own file.
(see Should the folders in a solution match the namespace? ).
The next question is how the folders should actually be…

Micdev42
- 151
- 1
- 1
- 4
15
votes
7 answers
Tests Projects In Solution
In .NET should you place unit test projects in with the rest of the solution? Or should there be a test solution that houses all the test projects?
We have all the test projects in with our code base solution...it seems a bit cumbersome.
What do…

Adam Driscoll
- 9,395
- 9
- 61
- 104
14
votes
7 answers
Unity Project doesn't have solution file
I just started learning unity and I created a project. But my project doesn't have a sln file included in. Every time I create a C# script and open it in Xamarin Studio I can't have any intellisense.
Is it normal not to have sln file in unity…

aakpro
- 1,538
- 2
- 19
- 53
14
votes
4 answers
Android: how to wait AsyncTask to finish in MainThread?
I know that the first you gonna this is... why the heck on the world you then use AsyncTask.
So here is my problem i am working on some Android app (API 7 for android 2.1 or higher) , and i am testing on emulator and everything was fine, so then i…

user1730007
- 211
- 1
- 3
- 13
13
votes
5 answers
Visual Studio 2022 unable to create .editorconfig file
Using Visual Studio Community 2022, version 17.4.4.
I just created a WPF (.NET Framework) solution using the built in VS template. To this solution, I wanted to add a .editorconfig file to aid with code formatting. However, when right clicking the…

Reece
- 549
- 9
- 23
13
votes
1 answer
Automatically include all .cpp/.h files of a folder in a vcproj Project in Visual Studio
Is there a way to set a vcproj Project folder in order to automatically include all .cpp or .h files depending on the path of the project ?
On other words, when adding files to the folder of my project using Windows explorer, is it possible to…

oaimac
- 784
- 2
- 12
- 27
13
votes
0 answers
Microsoft Visual Studio is Busy
lately, when i open my solution in VS2015 i cannot work anymore, the VS is blocked with this message:
i can open the solution and work on it if i delete the .suo file in the .vs folder of the solution, but i would like to find a better and…

Deatk
- 183
- 1
- 3
- 9
13
votes
12 answers
Visual Studio 2015: An equivalent project is already present in the project collection
When attempting to add back existing projects to a Visual Studio 2015 solution, VS gives the following error message. I have verified I have not already added a reference to the project I am trying to add. Is there a settings or cache file I need to…

Adam
- 4,590
- 10
- 51
- 84
12
votes
3 answers
Typical structure of an ASP.NET solution?
As the title says, I'm interested to know how you typically structure your ASP.NET solutions.
I'm especially interested in ASP.NET WebSite solutions, but information abut other types (WebApplication, MVC) might be interesting as well.
Some specific…

M4N
- 94,805
- 45
- 217
- 260
12
votes
2 answers
How to list all target frameworks of all projects for a given solution inside Visual Studio?
Given an opened solution in Visual Studio, how do I quickly check which target frameworks the various projects in the solution have? Is there a solution-wide view somewhere that shows which target framework each project targets, or an aggregate view…

julealgon
- 7,072
- 3
- 32
- 77
12
votes
3 answers
Preventing MSBuild from building a project in a .sln without using Solution Configurations
I want to inhibit the building of certain projects within a solution from building (within a TeamCity Build Configuration in order to optimize the speed of my Commit Build feedback if you must know).
I'm aware of the Solution Configurations…

Ruben Bartelink
- 59,778
- 26
- 187
- 249
12
votes
4 answers
How to add all projects to a single solution with dotnet sln?
Following examples from here I'm trying to execute
dotnet sln AllProjects.sln add **/*.csproj
But I get this error:
Could not find project or directory **/*.csproj.
Looks like wildcards are not working. What am I doing wrong?

astef
- 8,575
- 4
- 56
- 95
12
votes
3 answers
Visual Studio: What is the format of "*.sln" file? It's not xml
I used text editor to open an .sln file, it looks like a tree structure, but it's not xml format.
Do you know what format it is, and can we process it using C#, like processing xml conveniently?

vik santata
- 2,989
- 8
- 30
- 52
12
votes
2 answers
SSIS solution on GIT?
I can't find much resources about what version control to use with SSIS solution. Is it "proper" thing to do to put SSIS solution on GIT repository or there are other (better) solutions for this type of projects. I am familiar with git but I am not…

ilija veselica
- 9,414
- 39
- 93
- 147
12
votes
5 answers
How to build all projects in one single folder?
Is there a way to build solution into a single folder? I have several projects in this solution and each access a config file that should be in the current directory. I just move each project's build files into one and it still works, however, it…

user3068522
- 143
- 1
- 2
- 7