"Problem description" when you open a project with Visual Studio 2013, the following error occurs:
"Cause of the problem" reference http://codeverge.com/asp.net.web-forms/the-project-appears-to-be-under-source-cont/434113
The above error occurs because the project uses version control tools such as VSS or TFS or SVN, and the corresponding tool is not installed on the machine.
If you are using VSS or TFS, there will be a. vssscc file under the folder where the project is located;
If you use SVN, there will be a hidden. SVN folder in the folder where the project is located.
"Solution" Reference http://blog.useasp.net/archive/2015/12/15/ How-to-permanently-remove-vs-project-tfs-source-version-control-binding.aspx
1, clear (delete) All version control files under the project, these files are: *.vssscc,
*.vspscc,
Delete these version control files relatively simple, search these suffix files, delete can;
2, modify the project's solution file:*.sln
First verify that the solution file ( *.sln
) is modifiable, and if it is a read-only file, it needs to be adjusted to be modifiable.
Never open a file using Visual Studio, open the file with a text editor, and *.sln
in the file we will see code similar to the following:
Globalsection (Teamfoundationversioncontrol) =presolution sccnumberofprojects=4Sccenterpriseprovider= {xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx} sccteamfoundationserver= Here isYour project's TFSSccLocalPath0 = . SccProjectUniqueName1= project-unique-name1.csproj SccProjectName1= your-project-name SccLocalPath1= project-local-Path SccProjectUniqueName2= project-unique-name2.csproj SccProjectName2= project-name-2SccLocalPath2= local-path2 SccProjectUniqueName3= project-unique-name3.csproj SccProjectName3= project-name-3SccLocalPath3= local-Path3. Endglobalsection
This code is the TFS configuration that is loaded when the project starts, and we want to eliminate TFS, this code has to be deleted, and after deletion, save the file.
3. Modify versioning information in individual sub-projects in: *.csproj
(C # project, other project file suffix differs)
Complete the above two steps, the project's TFS control information has been cleaned up almost, if it is VS2010 project, then open with 2010 will be prompted, choose to permanently (completely) remove the source control of the associated bindings, confirm the entire project to complete the TFS cleanup work 1.
Mitchell is using VS2012, which opens the VS2013 project, and while the project is open, the above two steps are completed, but when the project is loaded, it will still appear in the Output window of VS:
Could not find a mapping for the solution. Could not find a mapping for the solution. Could not find a mapping for the solution. The active solution is temporarily disconnected from source control because the server is unavailable. To try reconnecting source control, close and reopen the solution when the server is available. If you are connecting to a different server, use the Change Source Control dialog box.
This problem is because *.csproj
there is versioning information, which causes vs will also try to do TFS related operations, to solve this problem, you need to delete the *.csproj
relevant information in the file, open the file with a text editor, you can see similar information:
<PropertyGroup> <!--other Configurations- <targetframeworkversion>v4. 5</TargetFrameworkVersion> <FileAlignment></FileAlignment> <SccProjectName>??? </SccProjectName> <SccLocalPath>??? </SccLocalPath> <SccAuxPath>??? </SccAuxPath> <SccProvider>??? </SccProvider></PropertyGroup>
The Scc*
configuration above is the version control information. It can be easily and brutally deleted, after the deletion is complete, save the file.
Once we've done that, we'll open the project again with VS and we won't have any information about TFS, and we can play with vs happily.
4, of course if you think this is still trouble, then you can download Mitchell write tfseliminator tool (need. NET 4.0 support), use is also quite convenient, there are two ways:
(1) command line:
# at the command line, use the: # application projectroot# format to complete the removal of TFS information in the specified directory # for example: items under D:\Temp\Test TFSEliminator.exe D:\Temp\Test
(2) To run directly, simply copy the program to the root of the project and double-click to run it.
Note: The command line is prompted, if you confirm the path is not a problem, remember to press Enter or Y Oh ~
"Visual Studio" The project appears to being under source control, but the associated source control plug-in was not installed On this computer