Skip to content
LogoTechnipages
LogoTechnipages
  • Topics
        • Android
        • Browsers
        • Gaming
        • Hardware
        • Internet
        • iPhone
        • Linux
        • macOS
        • Office
        • Reviews
        • Software
        • Windows
        • Definitions
        • All Recent Posts
  • Product Reviews
  • About

Visual Studio: Change Project Path

Mitch BartlettOctober 17, 2019 Comments (9)
Visual Studio Logo

Microsoft Visual Studio doesn’t make it very easy to change the project path for your development project. We came up with our own solution though. Hopefully this tutorial works for you.

1. Save and close the project if you have it open.

2. Navigate to the location where your project is stored using Windows File Explorer.

3. Move all of the project files to the new location. In this example, I am moving my project from a folder at C:\Users\mbartlett\source\repos\ConsoleApp2 to C:\Users\mbartlett\source\repos\MyNewFolder.

4. Right-click the solution file (.SLN), then select “Edit with Notepad“.

5. Change the line (usually line 6) that starts with “Project” to reflect the path you wish to use. For example, if I want to change the path of my ConsoleApp2 project from “ConsoleApp2\ConsoleApp2.vbproj” to “MyNewFolder\ConsoleApp2.vbproj” I would make these changes to that line:

Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ConsoleApp2", "ConsoleApp2\ConsoleApp2.vbproj", "{AFEA4FB5-B58A-498F-99A6-076B6F56601A}"

to

Project("{F184B08F-C81C-45F6-A57F-5ABD9991F28F}") = "ConsoleApp2", "MyNewFolder\ 
 ConsoleApp2.vbproj", "{AFEA4FB5-B58A-498F-99A6-076B6F56601A}

6. Now save your changes and close Notepad.

7. Open the project folder from its new location, then double-click it to open the project file (vbproj, cproj, etc). The project will open as normal and you should now be able to modify the project in its new location.

Categories: Software

Author Mitch Bartlett

Through my career that spans over 20 years I have become an expert in Microsoft Systems Administration, Android, and macOS. I started this site as a technical guide for myself and it has grown into what I hope is a useful knowledgebase for everyone.

You Might Also Like

  • How to Enable Half-Star Ratings in iTunes

    Mitch BartlettSoftware
  • Dropbox: How To Review Your Security Settings

    Mel HawthorneInternet
  • fix lastpass not generating passwords

    Fix: LastPass Generate Secure Password Not Working

    Madalina DinitaSoftware
  • dropbox selective sync guide and fixes

    Dropbox Selective Sync: How To Use And Fix This Feature

    Madalina DinitaSoftware

Comments

  1. Ildar says:
    March 16, 2023 at 9:37 am

    Thanks!!!

  2. Anna says:
    September 2, 2022 at 8:12 am

    This worked for me like a charm. Thank you for the excellent instructions!

  3. Dan D says:
    July 25, 2021 at 1:53 pm

    Since I renamed the folder, it broke the path link.
    Simple sol’n, add a new folder that was renamed to the workspace and delete the old broken folder.

  4. Guilnaz says:
    June 10, 2021 at 11:23 am

    Please help me wirh this problem:
    I have a project with lots of .vb files. Accidentally I moved some of them to a separate folder. When I realized I took them back, however the file path adress for those files have been changed.
    Although they exist in the same folder as my solution file, but when I open the solution file in Visual studio, I get errors for not beeing able to find those files.
    How can I fix this? Is there any way to change the file path in the properties or so on?
    some of those files are .Design.vb files which are the interface files for the project. When I add them through the add existing item icon, I will get some errors and the interface does not show up.

  5. MADAD says:
    March 29, 2021 at 6:55 am

    VERY GOOD thinks

  6. Jan Speyer says:
    June 18, 2020 at 3:06 am

    Hi Mitch,

    Actually there’s no editing of the solution file required. What I did:
    – Move the projects to the desired location
    – Open Visual Studio (in my case version 2019)
    – Navigate to Tools > Options > Projects and Solutions
    – Change the (3) project locations to the new desired locations
    – Don’t open your solution on the left bar which says ‘open recent’ because they point to the original location, but open your solution on the right bar which says ‘get started’
    – This is it :-).

  7. Qiniso Mazibuko says:
    June 5, 2020 at 9:21 am

    Thank you Mitch, just saved me so much time

  8. Mark Hussey says:
    April 24, 2020 at 9:39 am

    Easy Peasy! Thanks a million.

  9. Zeehsan Haider says:
    December 23, 2019 at 12:32 am

    Thank you so much. I worked. It saved my project.

Leave a Reply

Your email address will not be published. Required fields are marked *

  • fix error 0x9cfc7550

    How to Fix Error 0x9cfc7550 (We Couldn’t Create a New Partition) in Windows 

  • fix error code 0x3000008 1

    How to Fix Error Code 0x3000008 for Remote Desktop Connection

  • fix error code 0x80190001 1

    How to Quickly Fix Error 0x80190001 for Microsoft or Outlook Account Login 

  • fix filecoauth.exe application error

    Fix FileCoAuth.exe Application Error 

  • fix error code 0x80010002 in windows update

    How to Fix 0x80010002 Error in Windows Update 

profile pic

The Experts Behind Technipages

My name is Mitch Bartlett. I've been working in technology for over 20 years in a wide range of tech jobs from Tech Support to Software Testing. I started this site as a technical guide for myself and it has grown into what I hope is a useful reference for all.

Learn More

technipages logo white
linkedin icon

Technipages is part of Guiding Tech Media, a leading digital media publisher focused on helping people figure out technology. Learn more about our mission and team here.

© 2025 Guiding Tech Media All Rights Reserved

  • About Us
  • Contact
  • Terms of Use
  • Privacy Policy

© 2025 Guiding Tech Media All Rights Reserved

Information from your device can be used to personalize your ad experience.
Do not sell my personal information.

Last Updated on October 17, 2019 by Mitch Bartlett