Jeremy Jarrell

Hi, I"m having a weird issue where a project that I've added to my solution shows up as being under source control Team Explorer's "Source Control Explorer" but not under "Solution Explorer". The obvious work around here is that I can handle the checkin/checkout manually from source control explorer but I would like for it to work from solution explorer just like the rest of my files. I've tried removing and readding the project to the solution and checking in the solution several times but it never seems to pick up the change.

Any ideas




Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

Jiange Sun - MSFT

While you have the solution open in Solution Explorer, click on File | Source Control | Change Source Control, Click on Bind for each project/solution. This will automatically checkout your project/solution files. Checkin and you should be able to use all TFS commands inside Solution Explorer.

Thanks,

Jiange






Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

Jeremy Jarrell

Jiange,

Thanks for the quick response. Unfortunately when I view my source control bindings, the project in question doesn't show up in the list. The other projects do, but not this one, unfortunately.

Thanks!
Jeremy





Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

James Manning - MSFT

In Solution Explorer, can you right-click on the particular project and select "Add (Project) to Source Control"




Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

Jeremy Jarrell

Nope, the only source control related option I have is "Unshelve Pending Changes..." When I click this the 'Results' section of the resulting dialog box is empty.

I also have "View History" but it is greyed out.

Thanks!

Jeremy






Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

eugene.z

So you are saying that project is not bound (you cannot see it in "Change Source Control" window)

Is the project folder mapped in your workspace How the project folder is located relative to the solution (I mean - if it is under the solution root or is it in different folder altogether)

And lastly, you mentioned that history in Solution Explorer is grayed out; but can you see history when selecting project file in Source Control Explorer and view history there Does the history list contain any changesets for the project

Overall, I suspect that you either have a case of existing bindings (though you said that it does not appear in bindings, and then it is doubtful) or it is connected to the workspace mappings and overall structure of your solution.

Regards, Eugene






Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

Jeremy Jarrell

Hi Eugene,

Thanks for the response. Yes, the project doesn't appear actually appear in the Change Source Control window. I'm not exactly sure what you meant when you asked if the project folder is mapped in my workspace, it is under the physical root of of my solution, however. All of my projects (including the project in question) are at the same level from the solution as follows:
\\My Solution\My Project

It did just occur to me however that this particular project is a WiX project which means that its not native to Visual Studio, I had to install a plugin (Votive, I think) to get visual studio to recognize it. I'm not sure if this would affect the source control but I thought it was worth mentioning.

You are correct, I can't see history in the Solution Explorer but I can see it in the Source Control Explorer...I had never even though to check :)

I have two changesets for the project here, my initial commit changeset (changeset 3473) and a followup changeset (changeset 3475) with just a little code work. Looks like this project wasn't affected by changeset 3474. My most recent changeset for the entire solution appears to be 3475.

Now that I know that I can see the project in the Source Control Explorer I may spend some more time trying to recommit it tonight, there could very well be something obvious I'm missing. If i do figure it out I'll definitely put a follow up post here.

Thanks for the help!

Jeremy






Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

Richard Berg MSFT

If the project doesn't show up in the Change Source Control dialog at all (vs showing up as "not bound" or "invalid"), then there's probably a bug in Votive. I'd send your .sln and .proj files to JRock and see if he can reproduce it.



Re: Team Foundation Server - Version Control Files show up under source control in the team explorer but not in the solution explorer

eugene.z

Hello,

Well, I think the fact that the project you are using is not natively supported by VS may be important.

It would be interesting to know how you fare with that issue.

Regards, Eugene