NoviceAndNovice
NoviceAndNovice

Reputation: 725

Visual studio 2008 adding existing project to main solution

I have a main visual studio solution and other solution.(VS 2008) I want to add a project from other solution. If I use "Add Existing Item" visual studio create a reference to that project from main solution but it does not physically add files to solution folder.

How can i make physically add other project to my main solution ?

PS: physically MEANS the other project became first class memeber of my solution...Physically exist in it?

Upvotes: 3

Views: 4093

Answers (3)

Nathanael
Nathanael

Reputation: 1772

Projects only ever exist as references in a Solution file. (Crack a solution file open in notepad sometime and see for yourself.)

The whole point of Microsoft's Solution/Project paradigm is that your projects can live wherever you choose and still be tied together in a Solution file.

Upvotes: 1

rsenna
rsenna

Reputation: 11964

If I understood what your problem is, how about FIRST copying the files into the solution directory, THEN adding the project reference...?

You seem to be complaining that VS is not copying all files from the referenced source project into the new solution, but that's exactly how VS works. It does not "clone" a project when adding it to a solution - it is always only a "reference".

Upvotes: 2

Burt
Burt

Reputation: 7758

File > Add > Existing Project.

Upvotes: 3

Related Questions