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
12
votes
4 answers

Why don't tabs open automatically when I reopen my solution?

I have an ASP.NET MVC4 application solution (.sln). When I close Visual Studio and then reopen it and my solution, my tabs and my navigation structure in the solution explorer do not restore to the way they were. The solution is big and it takes me…
Rowan Freeman
  • 15,724
  • 11
  • 69
  • 100
12
votes
2 answers

VS2008: how to run two separate projects from the same solution

I have a single un-managed C++ console-app solution (.sln) with two projects (.vcproj) both are built as .exe. I want to run them both at the same time (one is a client and one is a server). How do I configure my Visual Studio such that when I hit a…
sivabudh
  • 31,807
  • 63
  • 162
  • 228
11
votes
1 answer

Teamcity not building my .SLN in release mode

I have created a release configuration project in Teamcity 6.5 using the "SLN Runner" for VS 2008 solutions. My debug solution builds fine along with the PDB files - however I simply cannot get the thing to build in Release mode, plus it will…
mpaton
  • 113
  • 1
  • 6
11
votes
2 answers

MSBuild copies dependent project files during _CopyOutOfDateSourceItemsToOutputDirectory

I have a C# project that uses the Project Dependencies in a sln file to make sure that the build order is correct. So I have in my sln file that ProjectB depends on ProjectA. Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "ProjectB",…
Marnix
  • 6,384
  • 4
  • 43
  • 78
11
votes
1 answer

GlobalSection(ExtensibilityGlobals) = postSolution , what is it doing in my Visual studio 2012 solution file?

My VS solution file ends in GlobalSection(ExtensibilityGlobals) = postSolution EnterpriseLibraryConfigurationToolBinariesPath =…
LosManos
  • 7,195
  • 6
  • 56
  • 107
11
votes
3 answers

Multiple namespaces in a single project

I find that sometimes I have the need to have multiple namespaces in a project I'm working on - are there any problems that may arise from having multiple namespaces in the same project? The alternative is obviously having multiple projects (per…
Acidic
  • 6,154
  • 12
  • 46
  • 80
10
votes
0 answers

Visual Studio C++ Multiple Project Solution Setup

0. Disclaimer This question is only about Visual Studio C++ project/solution configuration and may involve subjectivity. However, the idea behind this post is to share our approaches to configure a large Visual Studio solution. I'm not considering…
Adrien Givry
  • 956
  • 7
  • 18
10
votes
0 answers

How to add an existing cmake project to the Visual Studio Solution

I am using Visual Studio 2017 and I have a solution consisting of several projects mainly in C++. Now I want to add an existing C++ project which using CMake for building to my solution in visual studio and build it along with other projects in…
Reza
  • 3,473
  • 4
  • 35
  • 54
10
votes
1 answer

Project Directory Structure Lost in Visual Studio?

I'm learning Visual Studio 2015 Community. I'm a seasoned programmer, but new to VS, and the file representation is confusing me. I've created a solution, and added an existing project. VS is showing me all project files (In my case a C++ project,…
kmiklas
  • 13,085
  • 22
  • 67
  • 103
10
votes
1 answer

Force BuildManager to use another version of MSBuild

The following code tries to build a Solution programmatically, using BuildManager: ProjectCollection pc = new ProjectCollection(); pc.DefaultToolsVersion = "12.0"; pc.Loggers.Add(fileLogger); Dictionary globalProperty = new…
Maria Ines Parnisari
  • 16,584
  • 9
  • 85
  • 130
10
votes
4 answers

ASP.net MVC project structure

I have created the following project structure for my new asp.net mvc project any I was after some feedback as how other people are structuring their projects and if I would improve mine... Here is what I have so far: +Assets -+Images -+Scripts…
vdh_ant
  • 12,720
  • 13
  • 66
  • 86
9
votes
3 answers

How to create Visual Studio Solution (.sln) files programmatically, including Website projects?

I am working on a code generator project that creates solution with customizable layers. for now I am able to create the .sln file by writing all the elements in code. but the project files don't need this, they can be edited using MSBuild Project…
Ashkan
  • 3,322
  • 4
  • 36
  • 47
9
votes
4 answers

Distributed Cache/Session Solution for ASP.NET Web App

I am looking for a distributed Cache/Session solution, below is what I found. I hope anyone could share information regarding pros and cons of using it: NCache Windows Server AppFabric MemCached as recommended by @TFD I am using ASP.NET 4 and SQL…
Pingpong
  • 7,681
  • 21
  • 83
  • 209
9
votes
4 answers

How do I specify a custom code analysis ruleset for multiple projects in a solution using Visual Studio 2019?

I've got a custom code analysis ruleset that I want to apply to all configurations of multiple projects in my solution but can't see how I can do it. To be clear, I'm looking for a way (if any) of doing this in a single step rather then editing the…
9
votes
5 answers

Favorite projects in big solution in Visual Studio

Except my apologies if this has been asked - I couldn't find the match. I have a solution with... 96 projects. I work with 3-4 at a time. Is there a way to filter out, mark as favorite, etc. projects that I am currently interested in? The problem is…
Schultz9999
  • 8,717
  • 8
  • 48
  • 87