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
54
votes
2 answers

How to force Visual Studio not to add GlobalSection(Performance) section?

I played with Visual Studio builtin profiling tools and now every time I check out any file this section automatically adds to my solution file: GlobalSection(Performance) = preSolution HasPerformanceSessions = true EndGlobalSection I totally…
Denis Agarev
  • 1,531
  • 4
  • 17
  • 34
53
votes
14 answers

How do I programmatically list all projects in a solution?

How do I programmatically list all of the projects in a solution? I'll take a script, command-line, or API calls.
Kiquenet
  • 14,494
  • 35
  • 148
  • 243
53
votes
3 answers

The Ultimate Visual Studio Solution Structure

Realizing that this could be subjective based on the project at hand, I'm looking for the "best practice" method of structuring a VS (Visual Studio) Solution. Please feel free to edit this, comment on what you think might be incorrect, suggest…
Chase Florell
  • 46,378
  • 57
  • 186
  • 376
53
votes
3 answers

Is there any guidance on converting existing .NET class libraries to portable libraries?

I have some class libraries with a non-trivial amount of existing code. The class libraries currently target .NET 4.0. Is there any guidance on how to convert these libraries to be portable libraries? From looking at the .csproj, it doesn't appear…
Mark Stafford - MSFT
  • 4,306
  • 3
  • 17
  • 23
50
votes
4 answers

How to know which other projects refer to a certain project in Visual Studio?

In Visual Studio, for a class, a field, a method, I can just right click and say "Find All References" to see who is calling my code. But there is no similar thing for a project. What is the simplest way to do so? Do I have to check every project to…
50
votes
9 answers

How to link multiple visual studio solutions together?

I have 3 solutions and solution A requires built versions of the DLLs from solution B and C in order to compile. It is not possible to merge it to one solution... So far it seems that Visual Studio doesn't support solution references and msbuild is…
Simon P
  • 1,196
  • 1
  • 12
  • 26
49
votes
2 answers

Spring MVC - Project structure - best practices

What's the best approach? 1- Create multiple projects: 2- Create a single project:
bsferreira
  • 1,189
  • 5
  • 14
  • 27
48
votes
6 answers

How to programmatically include a file in my project?

Background I'm making a helper application that reformats some code files and creates new code files, which are to be added to my other project, so I could use the new code right away, but I'm having serious trouble adding that new code file into my…
47
votes
3 answers

Unsupported compiler 'com.apple.compilers.llvmgcc42' xcode 5 DP

I have a project which contains Geos and Proj inside it. Before Xcode 5 I compiled them with LLVM GCC 4.2 compiler, but in Xcode 5 DP I get an error about unsupported compiler. Choosing another compiler get to compilation errors depends on syntax.…
Azat
  • 6,745
  • 5
  • 31
  • 48
46
votes
4 answers

NuGet and multiple solutions

We have two solutions: foo.sln and bar.sln I have a common library that is used by both foo and bar. Common.csproj is used by both. If I open foo and update nuget references, all references in Common.csproj point to foo/packages/. If I later open…
Code Silverback
  • 3,204
  • 5
  • 32
  • 39
41
votes
16 answers

Easy way to add multiple existing .csproj to a Visual Studio Solution?

I've checked out a branch of C# code from source control. It contains maybe 50 projects in various folders. There's no existing .sln file to be found. I intended to create a blank solution to add existing solutions. The UI only lets me do this one…
Michael J Swart
  • 3,060
  • 3
  • 29
  • 46
41
votes
5 answers

Visual Studio Solutions / Multiple project : How to effectively propagate project properties amongst several C++ projects

I am working with a Visual Studio 2005 C++ solution that includes multiple projects (about 30). Based upon my experience, it often becomes annoying to maintain all the properties of the projects (i.e include path, lib path, linked libs, code…
Pascal T.
  • 3,866
  • 4
  • 33
  • 36
40
votes
5 answers

How to save DLLs in a different folder when compiling in Visual Studio?

Let's suppose I have a Window Forms / Console Application C# project with some external references and references to other class library projects in the same solution too. When I build the Window Form project, I want the referenced libraries be…
Oscar Mederos
  • 29,016
  • 22
  • 84
  • 124
38
votes
6 answers

Is there an alternative / plugin for Visual Studio's configuration manager?

I have the need to remove and rename a selection of solution/project configurations in Visual Studio. Is there a tool which will help with this? I'm finding the built-in tool very unhelpful. For example, when I delete a configuration from a solution…
ilivewithian
  • 19,476
  • 19
  • 103
  • 165
38
votes
3 answers

Disable drag&drop in solution explorer

Is there a way to disable the drag&drop functionality for Solution Explorer? Why would you ask? I'm using an wacom pen tablet for quite some years and I love it. But when you use it in solution explorer in combination with a source control like TFS…
JSC
  • 3,705
  • 3
  • 26
  • 25
1 2
3
90 91