473,320 Members | 2,029 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,320 software developers and data experts.

Unable to add an existing file to a project

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

Jun 21 '06 #1
1 1922
<ro************@gmail.com> wrote in message
news:11**********************@m73g2000cwd.googlegr oups.com...
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.


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
Jun 21 '06 #2

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

0
by: sreedhar | last post by:
Hi, i'm trying to open an existing ASP.NET project solution inside my VS.NET and i'm getting the following error. Any help would be greatly appreciated Unable to create web project...
3
by: David N | last post by:
I got a solution that contains about 30 projects, three of which cannot be open. When I open the project, I always receive the error message "Unable to get the project file from the Web Server" ...
3
by: alan_coffman2004 | last post by:
Opening an ASP.NET VS2002 project in VS2003, am getting this error: "Unable to open Web project 'MyProject'. The file path 'c:\inetpub\wwwroot\MyProject' does not correspond to the URL...
1
by: Carl | last post by:
This is really starting to do my head in, and I could really do with some advice/help. I'm using visual sourcesafe and attempting to open an existing project within Visual Studio. After...
0
by: jsausten | last post by:
I am having this ridiculously frustrating problem, migrating an existing web app to VS.2005. Initially I was able to successfully convert my VS 2002 app, by opening the Localhost site using the...
6
by: Brad | last post by:
I have a win2003 server workstation with multiple webs, each web has it's own ip address. In VS2005, if I select to open an existing web site, select Local IIS, the dialog correctly displays a...
7
by: Jed | last post by:
I am trying to open web project in VS 2003 using the File Share method. VS is running on XP Pro (Host) and I am accessing the root web of an XP Pro install on Virtual PC (Server) running on the...
4
by: airwot4 | last post by:
Hi all, I'm sure this is simple to answer but I have built a project exited VB Express. When I go back into VB Express and open the project no files appear (but I can open them manually) and...
11
by: benoitc | last post by:
I've been having a problem debugging an ASP.NET 1.1 application on an existing Windows XP/Visual Studio 2003 workstation that I've inherited from somebody else. The application builds fine, but...
0
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
1
isladogs
by: isladogs | last post by:
The next Access Europe meeting will be on Wednesday 6 Mar 2024 starting at 18:00 UK time (6PM UTC) and finishing at about 19:15 (7.15PM). In this month's session, we are pleased to welcome back...
0
by: Vimpel783 | last post by:
Hello! Guys, I found this code on the Internet, but I need to modify it a little. It works well, the problem is this: Data is sent from only one cell, in this case B5, but it is necessary that data...
1
by: PapaRatzi | last post by:
Hello, I am teaching myself MS Access forms design and Visual Basic. I've created a table to capture a list of Top 30 singles and forms to capture new entries. The final step is a form (unbound)...
0
by: Defcon1945 | last post by:
I'm trying to learn Python using Pycharm but import shutil doesn't work
1
by: Shællîpôpï 09 | last post by:
If u are using a keypad phone, how do u turn on JavaScript, to access features like WhatsApp, Facebook, Instagram....
0
by: af34tf | last post by:
Hi Guys, I have a domain whose name is BytesLimited.com, and I want to sell it. Does anyone know about platforms that allow me to list my domain in auction for free. Thank you
0
by: Faith0G | last post by:
I am starting a new it consulting business and it's been a while since I setup a new website. Is wordpress still the best web based software for hosting a 5 page website? The webpages will be...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 3 Apr 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome former...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.