Copied project still references older project's files.

M

Mahesh

Hi All,

When I copy and paste the project and open newer solution
in Visual Studio.NET that newer solution still references
files of older solution (It opens the older projects
files).

I know there is a "Copy Project" option in Visual
Studio.NET, but I wanted to know if there is any trick
available for this.

Same problem exits when I tried to open code sample
projects in Visual Studio.NET. It throws error that files
not found.

Thanks in advance
 
C

Charles Law

Hi Mahesh

Have a look in Project | Properties | Reference Path.

You may see here that your old versions are referenced before the newer
ones. Remove the old references and add the new ones, if necessary.

HTH

Charles
 
G

Guest

Hi Charles,

Thanks for the reply.

But what about second problem.(A downloaded code project)
If I can not open a project in IDE, how to remove those
older references?

It even can not open the project, shows error message that
files not found.
 
C

Charles Law

I think it depends on what it says it can't find. If it says that it can't
find a reference, ok the error and then add the reference manually. You will
have to remove the bad reference from the list first in the solution
explorer.

If it says it can't find a file or a sub-project then you should be able to
load the rest of it ok and then navigate to where the files actually are. If
the files simply aren't present then it could be a problem with the sample.

HTH

Charles
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Top