Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Languages / Managed C++ / June 2006

Tip: Looking for answers? Try searching our database.

Unable to add an existing file to a project

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
rohinichandrap@gmail.com - 21 Jun 2006 20:07 GMT
Hi,

I have converted a workspace(A.dsw) from VC++ 6.0 to VC++ 7.1(A.sln).
The solution A.sln has three projects in it B,C,D.

My software configuration management is done in Rational clear case.

Below is the hierarchy in my clearcase explorer.

 |
 |----jkl
 |
 |----abc
    |---------abc_source
         |---source files
         |---header files
    |---------abc_proj(*.vcproj,A.sln,*.vcproj.vspscc,..)

When I tried to add an existing source file to one of the projects I
got this following message box.

Some of the files you are adding to your project are located outside
the project's binding root.
These files cannot be source controlled unless they are moved.

In the soultion explorer in my IDE ,when I tried to add one of the
files from the folder abc_source\source files to any of the projects
source files folder  in the solution, I got the above message.

When I pressed OK nothing happened and the file did not get added to
the project.

Could anyone please help me in this regard.

Thanks&Regards,
Rohini Chandra
Carl Daniel [VC++ MVP] - 21 Jun 2006 20:39 GMT
> Hi,
>
[quoted text clipped - 29 lines]
>
> Could anyone please help me in this regard.

While I can't promise you a solution, I can tell you what the message means,
and what you might try to resolve it.

The "binding root" for the project and solution is /abc/abc_proj, while the
source files are in /abc/abc_source - that former not being a prefix of the
latter.

What you need to do is bind the solution at a higher level in the source
control hierarchy, so the binding root of the project and solution are both
/abc.

In theory, all you should need to do is unbind the project from
source-control, and then re-bind the solution to the /abc level in the
source control repository.  I say in theory because my experience has been
that in practice, it's often frustrating/difficult/impossible to get VS to
set the binding root the way you intended.

-cd

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.