Change path to project Microsoft Visual Studio

2019-08-08 04:11发布

I am working on a website on visual studio, I am a little new to visual studio and I am trying to move my whole directory for my website to my google drive so I can work on it on multiple computers.

How would I go about changing the source files located in the project file for visual studios.

Or is there an easier way?

1条回答
forever°为你锁心
2楼-- · 2019-08-08 04:33

Easiest way is to Remove the project in Visual Studio and then Add Existing Project and point to your new location.

enter image description here enter image description here

You could alternatively use a text editor to edit the .sln file. The top of the file defines Project elements:

 Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = 
       "SignalR.Backplane", "SignalR.Backplane\SignalR.Backplane.csproj", 
       "{EBF95949-81E0-4571-8014-E91B7577FB07}"
 EndProject

The second property is the path (relative or absolute) to the csproj file representing the project.

查看更多
登录 后发表回答