Opening solution from TFS

I am working on a project in Visual Studios 2013. I was trying to figure out how to do something, and it was recommended to look at another TFS project that does something similar. When I received the latest version of this other project, I found out that it was created in VS2010. He transferred it to VS2013 and locked the file for me. I disabled changes because I do not want to change this other program. I could not find a way to open this file without trying to lock the file for me by switching to VS2013. As an attempt to solve, I copied the file elsewhere on my computer and tried to open it without connecting to TFS. I assumed that this would allow him to switch to 2013 without updating the database. He still had problems and gave me this error: Solution file '%s' cannot be migrated because the solution cannot be checked out from source code control. To migrate the solution, make sure the solution file can be checked out and re-open it. Solution file '%s' cannot be migrated because the solution cannot be checked out from source code control. To migrate the solution, make sure the solution file can be checked out and re-open it.

How can I open this solution without updating the TFS solution and locking the file for myself?

+6
source share
2 answers

I ran into this problem. I checked the permissions on the solution files I was trying to open, and saw that it was set to read-only. I canceled the read-only selection and the solution was open.

+21
source

If everyone else is using VS2010 SP1, then updating the solution is not a problem. People will still be able to open it in VS2010 SP1, even if you check it. See Visual Studio 2013 compatibility notes on MSDN for specific things to keep an eye on.

Alternatively, after checking the files, but before opening the .sln file, create a copy of it in the same folder, calling it MyProject2013.sln (for example). Add this new solution to the original control using the Source Control Explorer, and then open it, allowing Visual Studio to update the .sln file as usual. The .sln 2010 file will be left untouched, and you should be fine to do what you like with the 2013 solution.

+1
source

Source: https://habr.com/ru/post/977006/


All Articles