tfsvisual-studio-2015getlatest

Visual Studio 2015: how to "Get Latest Version" only for projects belong solution


I'm experiencing a strange behavior of Visual Studio 2015 connected to Team Foundation Server 2010 when "get latest version" of solution.

When I perform "get latest version" of solution, Visual Studio 2015 will get all source controlled files and folders of Team Project, also if they don't belong to solution; probably due to I have solution in the root of Team Project of TFS.

I didn't experienced that issue with Visual Studio 2010.

Could someone help me?

Thanks in advance.

Update I have the following solution tree in TFS (I mention only files and folders belong to solution):


Solution

  • I can reproduce your situation with my side. However, I think this is the correct behavior.

    Cause you didn't get the files only related to this solution, you just get the latest for the folder of the solution. This will definitely get other items they don't belong to solution but under the same folder of .sln file. VS will use this method to determine whether a file belongs to the corresponding sln.

    Suggest you do not use this kind of folder architecture. When you create project, you'd better to check "create directory for solution" under root folder of team project.

    enter image description here