Get Latest & VS2010 -- getting folders not incl. in solution
Get Latest & VS2010 -- getting folders not incl. in solution
Hello,
We recently upgraded to Vault 5 pro and have started using the Enhanced client. Today I noticed a difference between the enhanced and classic clients and I'm curious if there is a fix. I have a solution that has approx 10 projects listed in subfolders underneath the parent/solution folder. In Vault, we have additional folders that are no longer included in the project (old code that was upgraded or moved or whatever... but maintained in Vault in case we ever needed it for some reason). When I get latest with the Classic client, only the folders and files that are pertinent to the VS solution are pulled down. However with the Enhanced client, all folders stored under that solution folder in Vault are pulled down, even the ones that are not part of the VS solution. I would like to continue using the Enhanced client, but I need the Get Latest command to act like it does under the Classic client.
I have browsed some other topics on this board but could not find a solution. I have tried unbinding/rebinding using both the classic and enhanced clients to see if that reset some setting in the solution, project or *ssc files. My solution file is in the top level folder, with the projects nested underneath. I will continue to use the Classic client for now but would be curious if there is a way to change this behavior in the Enhanced client? Let me know if you need more information or clarification on this issue. Thanks!
We recently upgraded to Vault 5 pro and have started using the Enhanced client. Today I noticed a difference between the enhanced and classic clients and I'm curious if there is a fix. I have a solution that has approx 10 projects listed in subfolders underneath the parent/solution folder. In Vault, we have additional folders that are no longer included in the project (old code that was upgraded or moved or whatever... but maintained in Vault in case we ever needed it for some reason). When I get latest with the Classic client, only the folders and files that are pertinent to the VS solution are pulled down. However with the Enhanced client, all folders stored under that solution folder in Vault are pulled down, even the ones that are not part of the VS solution. I would like to continue using the Enhanced client, but I need the Get Latest command to act like it does under the Classic client.
I have browsed some other topics on this board but could not find a solution. I have tried unbinding/rebinding using both the classic and enhanced clients to see if that reset some setting in the solution, project or *ssc files. My solution file is in the top level folder, with the projects nested underneath. I will continue to use the Classic client for now but would be curious if there is a way to change this behavior in the Enhanced client? Let me know if you need more information or clarification on this issue. Thanks!
Re: Get Latest & VS2010 -- getting folders not incl. in solu
After you removed the folder or project, did your .sln and project files become edited?
When you perform a Get in Visual Studio, it looks to the .sln and project files (.csproj, .vbproj, etc) to determine what to download. If you did not check in changes to those files prior to the next Get, then there's the potential to pull the old version of those files from Vault, which will then Get removed items.
Look in the .sln and project files using notepad and see if that folder or project is still listed.
When you perform a Get in Visual Studio, it looks to the .sln and project files (.csproj, .vbproj, etc) to determine what to download. If you did not check in changes to those files prior to the next Get, then there's the potential to pull the old version of those files from Vault, which will then Get removed items.
Look in the .sln and project files using notepad and see if that folder or project is still listed.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Get Latest & VS2010 -- getting folders not incl. in solu
Thanks for the info. Here are the most recent steps I took:
1. Currently using Classic client.
2. Removed bindings.
3. Changed VS2010 settings to use Enhanced Client.
4. Rebound project to Vault with the Enhanced Client.
5. Noted that the .SLN file has changed but the excluded folders are not listed in here. Looks like an existing section of code was just rewritten in a new format. No significant changes to the data.
6. In VS2010, right clicked on the top level Solution and did "Get Latest".
7. All folders in the Vault repository came down, even those that are not included in the SLN file.
This is still not working as I would hope. Any thoughts?
Thanks for your help.
1. Currently using Classic client.
2. Removed bindings.
3. Changed VS2010 settings to use Enhanced Client.
4. Rebound project to Vault with the Enhanced Client.
5. Noted that the .SLN file has changed but the excluded folders are not listed in here. Looks like an existing section of code was just rewritten in a new format. No significant changes to the data.
6. In VS2010, right clicked on the top level Solution and did "Get Latest".
7. All folders in the Vault repository came down, even those that are not included in the SLN file.
This is still not working as I would hope. Any thoughts?
Thanks for your help.
Re: Get Latest & VS2010 -- getting folders not incl. in solu
Check the .proj files too. Those should list the individual folder or files that it's getting. The .sln will list the projects and any files/folder that don't fall under a project.
I haven't been able to reproduce the behavior.
I haven't been able to reproduce the behavior.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Get Latest & VS2010 -- getting folders not incl. in solu
I'm only having problems with additional folders that are nested under the parent folder.
In Visual Studio I see this:
Solution
- Project 1
- Project 2
- Project 3
In Vault I see this:
Solution
- Project 1
- Project 2
- Project 3
- Project 4
- Project 5
- Project 6
The get latest is bringing down Project 4, 5, and 6 even though those folders/projects are not listed in the updated .SLN folder. I can certainly investigate the csproj files as well, though I'm not convinced they are the problem. The "Get" for the current stuff is working great. The only problem is the "Getting" of these older folders that are no longer linked to the solution.
Is it possible the csproj files in these older projects could be the problem? If so, could you suggest what I might look for in those older csproj files? I do not have time to troubleshoot further today but I will test a few things along these lines tomorrow. Thanks again.
In Visual Studio I see this:
Solution
- Project 1
- Project 2
- Project 3
In Vault I see this:
Solution
- Project 1
- Project 2
- Project 3
- Project 4
- Project 5
- Project 6
The get latest is bringing down Project 4, 5, and 6 even though those folders/projects are not listed in the updated .SLN folder. I can certainly investigate the csproj files as well, though I'm not convinced they are the problem. The "Get" for the current stuff is working great. The only problem is the "Getting" of these older folders that are no longer linked to the solution.
Is it possible the csproj files in these older projects could be the problem? If so, could you suggest what I might look for in those older csproj files? I do not have time to troubleshoot further today but I will test a few things along these lines tomorrow. Thanks again.
Re: Get Latest & VS2010 -- getting folders not incl. in solu
It might be easier to troubleshoot if I could take a closer look with you. Could you send an email to support at sourcegear.com (attn: Beth) with a link to this forum thread?
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Get Latest & VS2010 -- getting folders not incl. in solu
I'm sure you normally do, but please make sure to post the solution to this issue because I am experiencing the same problem.
Thanks
Thanks
Re: Get Latest & VS2010 -- getting folders not incl. in solu
I am having this same problem, too (Vault Pro 5.1.2). In VS2010, doing a "Get Latest" for a solution file that contains a couple projects 'gets' the entire contents of my Vault, instead of just a few files in a couple of folders!
Anxiously waiting for a solution...
Anxiously waiting for a solution...
Re: Get Latest & VS2010 -- getting folders not incl. in solu
I am working with support and will post the answer if/when we find one.
One other detail that I just recalled... I started the conversion to the Enhanced Client by using the Admin website. Initially I was unsure about the best way to change clients and this was the first support article I came across: http://support.sourcegear.com/viewtopic ... cts#p68334
I just took a second look at this and noticed that it allowed me to update all csproj files listed under my parent folder... even those that are not part of the current VS solution. I suspect this is where the issue started. I can see the csproj files were updated with a comment about rebinding to the enhanced client.
Rolling back to the previous version did not solve the problem.
One other detail that I just recalled... I started the conversion to the Enhanced Client by using the Admin website. Initially I was unsure about the best way to change clients and this was the first support article I came across: http://support.sourcegear.com/viewtopic ... cts#p68334
I just took a second look at this and noticed that it allowed me to update all csproj files listed under my parent folder... even those that are not part of the current VS solution. I suspect this is where the issue started. I can see the csproj files were updated with a comment about rebinding to the enhanced client.
Rolling back to the previous version did not solve the problem.
Re: Get Latest & VS2010 -- getting folders not incl. in solu
kylem: I've received your email and have responded.
This discussion will be taken offline for a bit.
HS: 225390
This discussion will be taken offline for a bit.
HS: 225390
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support
Re: Get Latest & VS2010 -- getting folders not incl. in solu
What we found in our meeting was an additional line in the .sln file that listed the .sln as if it was a subproject. How we resolved the issue was by creating a new blank .sln file, adding that file to Vault, and then adding the existing projects to the new .sln file.
For any other users that run across this issue, can you open your .sln in notepad and see if the .sln is listed along with the projects? If that line isn't there, then your case might be different and we should discuss it further.
For any other users that run across this issue, can you open your .sln in notepad and see if the .sln is listed along with the projects? If that line isn't there, then your case might be different and we should discuss it further.
Beth Kieler
SourceGear Technical Support
SourceGear Technical Support