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.

1230 questions
874
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
  • 126,803
  • 45
  • 214
  • 298
859
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.
  • 24,673
  • 12
  • 81
  • 114
727
votes
36 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
  • 10,492
  • 5
  • 26
  • 28
138
votes
4 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
  • 18,062
  • 13
  • 77
  • 111
133
votes
6 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
  • 21,813
  • 17
  • 52
  • 71
119
votes
28 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…
116
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
  • 59,991
  • 50
  • 166
  • 218
112
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
  • 12,710
  • 22
  • 65
  • 110
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
  • 26,680
  • 12
  • 68
  • 111
106
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!
101
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…
95
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
  • 10,950
  • 17
  • 85
  • 198
88
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
  • 4,993
  • 5
  • 38
  • 57
80
votes
13 answers

Display solution/file path in the Visual Studio IDE

I frequently work with multiple instances of Visual Studio, often working on different branches of the same solution. Visual C++ 6.0 used to display the full path of the current source file in its title bar, but Visual Studio 2005 doesn't appear to…
James Sutherland
  • 3,617
  • 2
  • 24
  • 24
75
votes
7 answers

Solution-wide pre-build event?

I have a solution in Visual Studio which contains several projects. I'd like to run a command at the very beginning of every build - no matter which projects are involved and whether or not they are up-to-date. Essentially I need something similar…
user200783
  • 12,313
  • 10
  • 58
  • 110
1
2 3
81 82