Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How do I solve error message "an error occurred registering this project with source control" when loading a project retrieved from a TFS server?

the full error message is:

"The Project 'my.project.name' is under source control. An error occurred registering this project with source control. It is recommended that you do not make any changes to this project."

It seems that I can make the error message go away, and load the project correctly by opening the csproj file, and remove all nodes with names starting with "scc" - however, then I have to confirm wanting to use the solution Source control settings every time I open the solution.

Any suggestions?

like image 453
Joda Avatar asked Apr 24 '12 13:04

Joda


People also ask

How do I add a project to source control?

On the Project tab, in the Source Control section, click Use Source Control. In the Source control Information dialog box, click Add Project to Source Control. In the Add to Source Control dialog box, in the Source control tool list, select Git to use the Git source control tool provided by the project.

What does add to source control mean in Visual Studio?

"Add to Source Control" is shown when a solution or project or folder has not been opened - Visual Studio Feedback. Skip to main content.


2 Answers

Please open the *.csproj file of your project then replace the following tags:

<SccProjectName>SAK</SccProjectName> <SccLocalPath>SAK</SccLocalPath> <SccAuxPath>SAK</SccAuxPath> <SccProvider>SAK</SccProvider> 

With

<SccProjectName> </SccProjectName> <SccLocalPath> </SccLocalPath> <SccAuxPath> </SccAuxPath> <SccProvider> </SccProvider> 

Close the solution, close VS, reopen VS and then your problem will be resolved.

like image 179
M.Mohammadi Avatar answered Sep 27 '22 21:09

M.Mohammadi


The problem is with the *.csproj.user and if you have source control with the *.csproj.vspscc (in VS2012). Delete both, close the solution, close VS, reopen VS using the Run As (preferably administrator) and it should be fine.

like image 43
bleepzter Avatar answered Sep 27 '22 21:09

bleepzter