CodeGuru Home VC++ / MFC / C++ .NET / C# Visual Basic VB Forums Developer.com
Results 1 to 2 of 2
  1. #1
    Join Date
    Aug 2000
    Location
    NY, USA
    Posts
    632

    FullPath property

    When I work with Windows Application in VS 2005 I do the following:
    1. I need to make some changes and do not want to lose the original code - I copy entire folder of my solution let's say MySolution1, name it as MySolution2.
    2. I double click on MySolution.sln file in the folder MySolution2.
    3. I always have files located in MySolution2 folder associated with my new
    copy of the solution
    4. If I make any changes in the solution I have those changes in MySolution2 folder.

    I tried to use the same approach with WEB project (File based). I see the
    files from my old folder in a new solution. I can change the location of
    files associated with a new copy only by opening sln file in Notepad and
    making changes there.
    Is there any way to change FullPath property of the file automatically when
    I open a copy of the solution, saved in a new folder? Maybe there is some
    option in VS environment?

    Thank you
    Vlad

  2. #2
    Join Date
    Nov 2004
    Location
    LA. California Raiders #1 AKA: Gangsta Yoda™
    Posts
    616

    Re: FullPath property

    If you open the vbproj file, you can verify that all the paths are relative to the project folder. Also, if you use source code control you will have to change the path to the project in VSS too.

    You may want to delete the .suo workspace file so its freshly created and relevant to your copied project.

    Finally, the .sln file may need to be modified to relate to your newly copied / renamed folder.


    You can iopen all these files in Wordpad for easier editing.
    VB/Office Guru™ (AKA: Gangsta Yoda™)
    VB Forums - Super Moderator 2001-Present

    Microsoft MVP 2006-2011

    Please use [code]your code goes in here[/code] tags when posting code.

    Senior Software Engineer MCP, BSEE, CET
    VS 2012 Premium, VS 6.0 Enterprise SP6, VSTO, Office Ultimate 2010, Windows 7 Ultimate
    Star Wars Gangsta Rap SE Reputations & Rating Posts Office Primary Interop AssembliesAdvanced VB/Office Guru™ Word SpellChecker™.NETAdvanced VB/Office Guru™ Word SpellChecker™ VB6Outlook Global Address ListVB6/Crystal Report Ex.VB6/CR Print Setup Dialog Ex.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  





Click Here to Expand Forum to Full Width

Featured