I recently copied over some project files from one project to another and attempted to add it to my solution.
As you can probably guess, adding the projects to the solution did not add them to the solution source control bindings!
I went into File-->Source Control-->Advanced-->Change Source Control and reviewed the bindings:
The 2 new projects showed the "Invalid" status next to them. Unbinding and Rebinding the projects was useless in resolving this issue.
Well, I started digging through articles on the Internet and it seems that this is a very common problem with no clear solution, so I decided to dig through the project and solution files to see if I could come up with a workable solution.
This is what I ended up doing to solve my problem:
As you can probably guess, adding the projects to the solution did not add them to the solution source control bindings!
I went into File-->Source Control-->Advanced-->Change Source Control and reviewed the bindings:
The 2 new projects showed the "Invalid" status next to them. Unbinding and Rebinding the projects was useless in resolving this issue.
Well, I started digging through articles on the Internet and it seems that this is a very common problem with no clear solution, so I decided to dig through the project and solution files to see if I could come up with a workable solution.
This is what I ended up doing to solve my problem:
- Deleted the vspscc files from the folders of the newly added projects
- Opened up the .csproj files and manually edited out the following lines from them:
<SccProjectName>SAK</SccProjectName>
<SccLocalPath>SAK</SccLocalPath>
<SccAuxPath>SAK</SccAuxPath>
<SccProvider>SAK</SccProvider>
- Opened up the solution file and manually edited out the .csproj project references from them
- Reloaded the solution
- Added the projects back into the solution
- The solution now successfully added the projects to Source Control!!
Hey, what do you mean by "manually edited out"? You removed those lines?
ReplyDelete