Questions tagged [solution]

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.

893 questions
153
votes
14 answers

Setting up a common nuget packages folder for all solutions when some projects are included in multiple solutions

I have been using NuGet to retrieve packages from external and internal package sources, which is very convenient. But I have realized that the packages are by default stored per solution, which is very frustrating when some projects with NuGet…
Mats Isaksson
  • 1,939
  • 2
  • 14
  • 18
133
votes
1 answer

Building C# Solution in Release mode using MSBuild.exe

I am able to build a solution using MSBuild.exe, but my issue is I can only manage to get it to build in DEBUG mode. I need to build my solution in Release mode using MSBUILD. Here is what I've tried Process msbuild =…
user3682000
  • 1,371
  • 2
  • 8
  • 4
130
votes
10 answers

Visual Studio Project vs. Solution

Being new to VS, how may I think of these two concepts, what is the difference?
bmw0128
  • 13,470
  • 24
  • 68
  • 116
114
votes
6 answers

Retargeting All Projects in a Solution to .NET 4.5.2

I have a solution in Visual Studio 2012 with 170 C# projects in it. I need to retarget all of the projects from .NET Framework 4.0 to 4.5.2. I prefer to let Visual Studio handle this by going into the properties of each project, changing the…
Kyle V.
  • 4,752
  • 9
  • 47
  • 81
104
votes
6 answers

How to force a Solution file (SLN) to be opened in Visual Studio 2013?

Trying to open a VS 2012 solution (SLN file) explicitly in VS 2013 succeeds. Simply double-clicking it in Windows Explorer still opens it in VS 2012 instead. I've read "Visual Studio 2012 doesn't convert vs2010 solution?" and followed the suggestion…
Uwe Keim
  • 39,551
  • 56
  • 175
  • 291
85
votes
3 answers

How to share the same Resharper settings between multiple solutions, with no manual intervention?

Our projects are organized in a master solution (containing every project) and multiple smaller solutions containing groupings of related projects. I would like to share the same Resharper settings across every solution, making sure that the…
julealgon
  • 7,072
  • 3
  • 32
  • 77
67
votes
10 answers

Visual Studio 2012 doesn't convert vs2010 solution?

I opened my vs2010 solution with vs2012 but it didn't make any conversion as from 2008 to 2010 was happening. So my solution still remains the same as 10 label on it. when I make a new solution of course it has 11 label on it. I haven't got any…
Emil
  • 6,411
  • 7
  • 62
  • 112
60
votes
8 answers

What is a solution folder in Visual Studio?

I have a Visual Studio 2008 solution, and I would like to include a real folder in the solution, but not at the project level, instead at the solution level. I noticed you can right click the solution and add a solution folder, but it comes up as…
Michael L
  • 5,560
  • 7
  • 29
  • 32
43
votes
3 answers

DLL reference not copying into project bin

Project A references Project B, and Project B references an external DDL (restored using NuGet). The DLL should get copied into Project A's bin folder (along with Project B's DLL): In my case, when running Project A, I get the following exception…
Dave New
  • 38,496
  • 59
  • 215
  • 394
41
votes
2 answers

How to NOT include Visual Studio Project folder names in generated namespaces

How do I prevent the name of the Solution Folder in a VS project from being appended to the namespace generated for new items added to the solution folder? Example: C# project in a VS solution Default Namespace set in C# project properties:…
sbohlen
  • 1,999
  • 1
  • 15
  • 18
35
votes
5 answers

Prevent iisexpress from running the websites in a solution when the startup app is a console app

I have a solution with a number of projects in it. Even if I set the web project's start options to: Don't open a page. Wait for a request from an external application. Use custom webserver. Base URL: http://localhost. And the startup project…
Hoppe
  • 6,508
  • 17
  • 60
  • 114
35
votes
1 answer

Git and Visual Studio project references

Alrighty then, the short version of my question would be: What is the best way to handle project references in Git when you have projects that are shared across multiple solutions and how should my Git repos be organized? The long version is: We are…
34
votes
4 answers

When I unload projects in visual studio, where does VS save this setting?

I checked the solution file and the project file, and can not find anything related to this setting. When people get latest version from TFS source control, they always see the 'loaded' status, which is not really what I want.
Narutokk
  • 964
  • 1
  • 8
  • 20
33
votes
6 answers

Macros/Environment variable in .sln and .vcproj files for Visual studio

I have two similar problems: a) I have a solution which includes several projects and I want to be able easily switch project location by setting some environment variable/macro. As example this project can be located in \SolutionDir\Dir1\ or…
Victor Ronin
33
votes
4 answers

How do I show the References folder in Solution Explorer without selecting 'Show All Files' in a VB.NET project?

As I compare many C# example projects to my VB.NET projects, I see that the References folder shows in the Solution Explorer without having to select "Show All Files". Is it possible to have this for a VB.NET project as well? I find that it would be…
Jeff
  • 2,191
  • 4
  • 30
  • 49
1
2 3
59 60