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
904
votes
8 answers

What are the various "Build action" settings in Visual Studio project properties and what do they do?

For the most part, you just take whatever Visual Studio sets it for you as a default... I'm referring to the BuildAction property for each file selected in Solution Explorer. There are a number of options and it's difficult to know what each one of…
Gishu
  • 134,492
  • 47
  • 225
  • 308
887
votes
25 answers

ASP.NET Web Site or ASP.NET Web Application?

When I start a new ASP.NET project in Visual Studio, I can create an ASP.NET Web Application or I can create an ASP.NET Web Site. What is the difference between ASP.NET Web Application and ASP.NET Web Site? Why would I choose one over other? Is the…
Robert S.
  • 25,266
  • 14
  • 84
  • 116
803
votes
43 answers

How can I rename a project folder from within Visual Studio?

My current solution for renaming the project folder is: Remove the project from the solution. Rename the folder outside Visual Studio. Re-add the project to the solution. Is there a better way?
andersjanmyr
  • 11,302
  • 5
  • 29
  • 29
177
votes
9 answers

Is there any way to create a blank solution (.sln) file first and then add projects?

Visual studio has always annoyed me because (to my knowledge) you cannot create a solution first and then add new/existing projects to it. The only way I know how to create a solution is to create a project and specify the solution name for it. So,…
Allen Rice
  • 19,068
  • 14
  • 83
  • 115
150
votes
16 answers

Visual Studio: Add existing folder(s) to project

Is there a way to add existing Folders to a Visual Studio Project so that I do not have to do this file by file? Edit To make it clear: I want to add references not copies.
HerpDerpington
  • 3,751
  • 4
  • 27
  • 43
149
votes
8 answers

"Add as Link" for folders in Visual Studio projects

In Visual Studio, we can "Add as link" to add a link to a file in another project in the solution. Is there any way to do this for entire folders, so that an entire folder in project A will be visible in project B, without the need to manually link…
kpozin
  • 25,691
  • 19
  • 57
  • 76
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
127
votes
6 answers

visual c++: #include files from other projects in the same solution

I am working on a game using Visual C++. I have some components in separate projects, and have set the project dependencies. How do I #include a header file from a different project? I have no idea how to use classes from one project in another.
rlbond
  • 65,341
  • 56
  • 178
  • 228
124
votes
32 answers

Error: Cannot access file bin/Debug/... because it is being used by another process

When I debug my project, I get following error: "Unable to copy file "obj\Debug\My Dream.exe" to "bin\Debug\My Dream.exe". The process cannot access the file 'bin\Debug\My Dream.exe' because it is being used by another process." Using Process…
118
votes
15 answers

Should a .sln be committed to source control?

Is it a best practice to commit a .sln file to source control? When is it appropriate or inappropriate to do so? Update There were several good points made in the answers. Thanks for the responses!
113
votes
3 answers

What is the significance of ProjectTypeGuids tag in the visual studio project file

What is the significance of the ProjectTypeGuids tag in a visual studio project?? When I created a WPF application, i am seeing two GUIDs in here. {60dc8134-eba5-43b8-bcc9-bb4bc16c2548};{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}** Does these…
108
votes
8 answers

How do you organize your version control repository?

First, I know about this: How would you organize a Subversion repository for in house software projects? Next, the actual question: My team is restructuring our repository and I'm looking for hints on how to organize it. (SVN in this case). Here's…
Krzysztof Kozmic
  • 27,267
  • 12
  • 73
  • 115
94
votes
13 answers

How to remove a project (from the workspace) in PHPStorm?

How can I delete (and not simply close) a project in PHPStorm?
automatix
  • 14,018
  • 26
  • 105
  • 230
89
votes
12 answers

Best practices for large solutions in Visual Studio (2008)

We have a solution with around 100+ projects, most of them C#. Naturally, it takes a long time to both open and build, so I am looking for best practices for such beasts. Along the lines of questions I am hoping to get answers to, are: how do you…
Eyvind
  • 5,221
  • 5
  • 40
  • 59
87
votes
5 answers

What are the project GUIDs in a Visual Studio solution file used for?

I have multiple projects in a single Visual Studio (2008) solution. I just discovered that each of these projects uses a same GUID, so in the solution file it looks like this: Project("{FAE04EC0-F103-D311-BF4B-00C04FCBFE97}") = "Pro1",…
Marc
  • 9,012
  • 13
  • 57
  • 72
1
2 3
90 91