Skip to content
  • Categories
  • Recent
  • Tags
  • Popular
  • World
  • Users
  • Groups
Skins
  • Light
  • Cerulean
  • Cosmo
  • Flatly
  • Journal
  • Litera
  • Lumen
  • Lux
  • Materia
  • Minty
  • Morph
  • Pulse
  • Sandstone
  • Simplex
  • Sketchy
  • Spacelab
  • United
  • Yeti
  • Zephyr
  • Dark
  • Cyborg
  • Darkly
  • Quartz
  • Slate
  • Solar
  • Superhero
  • Vapor

  • Default (No Skin)
  • No Skin
Collapse
Code Project
  1. Home
  2. General Programming
  3. Managed C++/CLI
  4. Versioning in Visual Studio 2005

Versioning in Visual Studio 2005

Scheduled Pinned Locked Moved Managed C++/CLI
questioncsharpc++visual-studiohelp
2 Posts 2 Posters 0 Views 1 Watching
  • Oldest to Newest
  • Newest to Oldest
  • Most Votes
Reply
  • Reply as topic
Log in to reply
This topic has been deleted. Only users with topic management privileges can see it.
  • B Offline
    B Offline
    BuckBrown
    wrote on last edited by
    #1

    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

    M 1 Reply Last reply
    0
    • B BuckBrown

      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

      M Offline
      M Offline
      Mark Salsbery
      wrote on last edited by
      #2

      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:

      1 Reply Last reply
      0
      Reply
      • Reply as topic
      Log in to reply
      • Oldest to Newest
      • Newest to Oldest
      • Most Votes


      • Login

      • Don't have an account? Register

      • Login or register to search.
      • First post
        Last post
      0
      • Categories
      • Recent
      • Tags
      • Popular
      • World
      • Users
      • Groups