Questions tagged [projects-and-solutions]

Some IDEs organize code and resources into projects and solutions, usually in a directory-based hierarchy. This can also be done manually.

1354 questions
23
votes
3 answers

Where is the Startup Project setting stored for a solution?

When I right-click my solution in the Solution Explorer and choose Properties I get a dialog where I can select the Startup Project. I sometimes select Current selection (If it is an experimental solution with lots of projects I jump between), but…
Svish
  • 152,914
  • 173
  • 462
  • 620
22
votes
2 answers

Moving from Visual Studio to Sublime Text

I'm working with Sublime Text for a while now and it works perfectly! But at my new work they're using Visual Studio, with some plugins and shortcut changes I'm now be able to work a little bit faster but I prefer Sublime Text. Why I'm stuck to…
Roy
  • 4,254
  • 5
  • 28
  • 39
21
votes
4 answers

How do I automatically set all projects in my solution to the same version?

I have a Visual Studio solution with 5 C# projects. I want the assembly versions to match in each project. But it looks like I have to go into each project's properties and click assembly version for each project one at a time. Is there a way to…
21
votes
6 answers

Tips and tricks for working with Microsoft Visual Studio solutions and project

After answering on this question I thought it would be nice to collect some tips & tricks for working with MSVS solutions and projects. Here is my list: How to avoid saving new projects automatically to reduce garbage in file system. Uncheck…
aku
  • 122,288
  • 32
  • 173
  • 203
21
votes
4 answers

VS2012: Property Pages isn't opening: Object reference not set to an instance of an object

I'm on Visual Studio Premium 2012, Version 11.0.50727.1 RTMREL, Windows 7 Enterprise (SP1). When I right click on the Solution, and click Properties, I get a popup window showing the the null reference exception (Object reference not set to an…
20
votes
3 answers

Move type from one project to another via ReSharper?

I have several interfaces and classes that I have in my business layer project and I want to move them into a brand new project. I am using ReSharper 4.5.2. Is there any way I can do that easily and with no pain? I know about the move type…
19
votes
3 answers

How can I hide files from Solution Explorer by name in VS2015?

I am writing a website in VS2015 using the ASP.NET Preview template. Unfortunately, Dropbox has added a bunch of .dropbox.attr files in each folder of my project, which the Solution Explorer is displaying: Note that I have not added them to the…
19
votes
8 answers

How do you create a Visual Studio Solution File (.sln) in the same directory as the web project?

I'm using VisualSVN client and server and one of the requirements for web projects to work as expected is to have the .sln in the same directory (root) as the other files. I thought it was as simple as removing all the extra parent paths ../ and…
19
votes
8 answers

Determine the source of an indirect dependency on incorrect .NET Framework version

I would like to know how I can determine the source of this build error; Warning 4 The primary reference "MyNamespace.MyProject" could not be resolved because it has an indirect dependency on the .NET Framework assembly "System.Xml,…
RJ Lohan
  • 6,497
  • 3
  • 34
  • 54
18
votes
1 answer

Should interfaces be in a separate project from their implementation?

My question isn't so much about use of interfaces but more of a project organization nature. Note: I am using VisualStudio in a multi-layered application. Should my Interface files live in a separate project from their implementations? My initial…
Ben Elder
  • 588
  • 3
  • 10
17
votes
2 answers

Visual Studio 2010 "Solution platforms" popup missing

I'm getting a weird problem with Visual Studio 2010 Premium. I use two PCs, on the first there is no problem on the second the "Solution Platforms" popup menu disappeared, the configuration is the same (Windows 7 x64). The problem occured when I…
André
  • 173
  • 1
  • 1
  • 4
17
votes
2 answers

How to Reference .xproj into .csproj?

I have .csproj project and I want to reference other project that is .xproj, everything looks fine but when I try to build solution then I cannot because the .dll is missing. When i reference the .dll from \bin\release\net452\... itself then…
Sebastian 506563
  • 6,980
  • 3
  • 31
  • 56
17
votes
7 answers

Visual studio solutions with large numbers of projects

I see developers frequently developing against a solution containing all the projects (27) in a system. This raises problems of build duration (5 minutes), performance of Visual Studio (such as intellisense latency), plus it doesn't force…
Ben Aston
  • 53,718
  • 65
  • 205
  • 331
17
votes
16 answers

The project currently contains references to more than one version

We recently upgraded to VS2012 and .NET 4.5. Since switching to 2012, I constantly get these errors when debugging: Compiler Error Message: BC32206: The project currently contains references to more than one version of NPGUtilities, a direct …
17
votes
4 answers

How do I open an .rptproj in Visual Studio 2010?

I have a Visual Studio 2010 solution that contains an .rptproj type of project. One of my colleagues is able to open that solution in Visual Studio 2010 SP1 just fine. I've seen it work. However, when I try to do it, I get "this type of project is…