Versioning in Visual Studio 2005
-
Hi, I'm using Visual Studio 2005 C++/CLI. I have an application that I would like to create a new version of. Obviously I don't want to recreate a bunch of dialog boxes, etc., so I copied my application from c:/Visual Studio 2005 Applications/myAppVersion1/myApp to c:/Visual Studio 2005 Applications/myAppVersion2/myApp. Here is my problem... I click on c:/Visual Studio 2005 Applications/myAppVersion2/myApp.sln to bring up Visual Studio 2005. Then I clean and rebuild the solution but when I run myApp there is a line that gets the current directory System::IO::Directory::GetCurrentDirectory() and it uses the directory for myAppVersion1. If I am running the solution from myAppVersion2 directory then why does GetCurrentDirectory() return the myAppVersion1 directory? Thanks, Buck
-
Hi, I'm using Visual Studio 2005 C++/CLI. I have an application that I would like to create a new version of. Obviously I don't want to recreate a bunch of dialog boxes, etc., so I copied my application from c:/Visual Studio 2005 Applications/myAppVersion1/myApp to c:/Visual Studio 2005 Applications/myAppVersion2/myApp. Here is my problem... I click on c:/Visual Studio 2005 Applications/myAppVersion2/myApp.sln to bring up Visual Studio 2005. Then I clean and rebuild the solution but when I run myApp there is a line that gets the current directory System::IO::Directory::GetCurrentDirectory() and it uses the directory for myAppVersion1. If I am running the solution from myAppVersion2 directory then why does GetCurrentDirectory() return the myAppVersion1 directory? Thanks, Buck
In the project's debugger settings, do you have a working directory specified? In general, your app should set the working directory and not assume a certain location :) Mark
Mark Salsbery Microsoft MVP - Visual C++ :java: