J
Jerad Rose
This is regarding Visual Studio 2003 (framework 1.1). We have several
projects/libraries. Of course, many of these reference each other. If we
only had one solution, we would simply add all of the libraries that we wish
to debug to the solution, and make project references to the other projects
within the solution. All other library references would be file references,
since they were not included in the solution.
However, the problem comes in when you have more than one solution sharing
different libraries. For example, take the following simplified setup:
Solution1
- Project1
- Project2
Solution2
- Project2
If the code (and project information) is being shared, then we obviously
can't have different reference types for Project2. Therefore, we are left
with either a) removing Project1 from Solution1, and making the Project1
reference in Project2 a file reference, or b) adding Project1 to Solution2,
and making the Project1 reference in Project2 a project reference. Of
course, this is an over-simplified example, and our situation is much more
complicated and will only get worse. But if I could find a solution to this
simple example, we should be able to apply it to our more complicated setup.
Now, you may be asking why we would want two different developers working on
Project2 code, but the point of including a project in a solution is not
always to be able to make modifications to it, but to have quick access to
the code for viewing. Also, there are cases where developers may be
assigned to different classes (files) within a project, and work may be
shared within a project, but by developers that are working on two different
solutions.
Is there not a way to tell visual studio to reference a project, and if it
detected that the project is not loaded, simply "auto-switch" the reference
to the file (or vice-versa, it would reference the compiled file, and detect
when the project was loaded and switch to a project reference)? This seemed
to work in VB6, where if would detect when a project is loaded, and change
the reference to the loaded project instead of the compiled file.
If this is not possible, then what workarounds have you guys implemented to
resolve this issue?
Thanks in advance for your help.
Jerad
projects/libraries. Of course, many of these reference each other. If we
only had one solution, we would simply add all of the libraries that we wish
to debug to the solution, and make project references to the other projects
within the solution. All other library references would be file references,
since they were not included in the solution.
However, the problem comes in when you have more than one solution sharing
different libraries. For example, take the following simplified setup:
Solution1
- Project1
- Project2
- Solution1TestClientProject1 (project reference)
Solution2
- Project2
- Solution2TestClientProject1 (file reference) - Project3
Project2 (project reference)
If the code (and project information) is being shared, then we obviously
can't have different reference types for Project2. Therefore, we are left
with either a) removing Project1 from Solution1, and making the Project1
reference in Project2 a file reference, or b) adding Project1 to Solution2,
and making the Project1 reference in Project2 a project reference. Of
course, this is an over-simplified example, and our situation is much more
complicated and will only get worse. But if I could find a solution to this
simple example, we should be able to apply it to our more complicated setup.
Now, you may be asking why we would want two different developers working on
Project2 code, but the point of including a project in a solution is not
always to be able to make modifications to it, but to have quick access to
the code for viewing. Also, there are cases where developers may be
assigned to different classes (files) within a project, and work may be
shared within a project, but by developers that are working on two different
solutions.
Is there not a way to tell visual studio to reference a project, and if it
detected that the project is not loaded, simply "auto-switch" the reference
to the file (or vice-versa, it would reference the compiled file, and detect
when the project was loaded and switch to a project reference)? This seemed
to work in VB6, where if would detect when a project is loaded, and change
the reference to the loaded project instead of the compiled file.
If this is not possible, then what workarounds have you guys implemented to
resolve this issue?
Thanks in advance for your help.
Jerad