Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Copy and rename an existing Visual Studio Project

I copied an existing working Visual Studio project instead of creating a new one from scratch.

This way, i will avoid to import the references and the dependencies. After copying the folder, i renamed the folder to Project2, the .sln and the .csproj to Project2 as well.

Now when i run the copied project in Visual Studio, it runs my old project! why? do i need to modify something else ?

Thanks

like image 699
user708683 Avatar asked Oct 18 '25 12:10

user708683


1 Answers

There are certain settings that bind to your project's solution (cached settings/files). There are ways to check this cache and clear it, but before that I would try these things:

  1. Make sure that the Project -> Properties -> General -> Path is the right path.

  2. Closing all open instances of Visual Studio can often help encourage settings-reset as well.

  3. Often times, simply cleaning or rebuilding the project will correct all incorrect cache settings.

  4. Delete your bin folder.

  5. You could also try changing the URL/Directory by navigating to Project Properties -> Web, and changing the URL that way.

For example, changing http://localhost:3688/

to http://localhost:36881/

  1. If the above steps don't work, you can always look in either

C:\Documents and Settings\Administrator\Local Settings\Temp\VWDWebCache

or possibly

C:\Documents and Settings\Administrator\Local Settings\Application Data\Microsoft\WebsiteCache

to clear cache that way.

like image 188
LatentDenis Avatar answered Oct 21 '25 07:10

LatentDenis