index > Team Foundation Server - Version Control > Possible bug with undoing 'Add solution to source control' in VS2...

Possible bug with undoing 'Add solution to source control' in VS2...


I've seem to have run into a bug in VS2005 (for Developers).

Steps to reproduce:

a. create new project.

b. Right click on solution, select Add Solution to Source Control.
(Plus signs are shown next to all items in solution,
solution appears in Source Control Explorer with plus signs).

c. Right click on solution, select Undo Pending changes.
(plus signs disappear from solutions items,
solution does not show in Source Control Explorer).

d. Right click on solution - only source control menu entries shown are Unselve pending changes and disabled History.

How do I add this solution back to source control?

Thanks

Nadav

Nadav Popplewell

Nadav,

Please see the following post, I believe that answers your question.

Regards, Eugene




Blog at http://teamfoundation.blogspot.com
eugene.z

Hi Eugene,

Thanks for your reply.

Your link did answer my question.

I just wish that if the IDE could not do something (in this case, because it could be sure if the bindings should be deleted or not), it would display some message box.

Something like, 'Source Control Binding to solution/project were NOT removed, to remove them do ...'.

Nadav

Nadav Popplewell

FYI, I have created a fix where undoing a pending add on a solution or project file will result in the solution or project being "unbound". This means that you can do Add Solution to SCC, undo the pending adds and then have the option to Add Solution to SCC again.

The fix does NOT remove any workspace mappings. This means that the second attempt to Add Solution to SCC as described above would add the solution to the same mapped location in the repository. The user would need to modify/remove workspace mappings before attempting the second Add Solution to SCC to be able to choose an alternate location.

The reason the fix does not modify workspace mappings is that there is not a way to tell which mappings were created by the first Add Solution to SCC and which may have been created manually be the user. We do not want to erroneously delete mappings that may affect files outside the solution.

This fix is not in the upcoming TFS SP1. It should ship with the next release of Team Foundation Server.

--Ben Ryan




Visual Studio - TFS Version Control
Ben Ryan - MSFT
reply 4

You can use google to search for other answers

 

More Articles

Files appearing as empty folders and TF10187
Synchronizing TFS and Visual SourceSafe
Migration to TFS from VSS - complicated project structure
Problem with Visual Interdev and VB6 with Source Control in TFS
Trying to get Merged Changesets history between two Team Projects
Undo Check Out of another user
Shelving
Checkin crashes
TFS Support in Visual Web Developer 2005 Express Edition?
Approval check-inpolicy
Welcome to Bokebb   New Update   Joins the collection  
 

New Articles

Force a compile on check-in
Any exiting tools or method to print out…
Workspace remain in the windows 2000 use…
Source Safe Conversion Issues
Bug in MSSCCI Provider or in VS2003 ?
Retrieving the workitem delta between tw…
Can I merge two branch manually?
Re: Can't undo CreateTeamProjectFolder()
New TFS VersionTree addin
File Recovery in TFS
Migrate sourcegear vault to TFS?
Migrate from ClearCase to TFS
TFS MSSCCI Provider Final fails to install
Changing Permissions on New Branches
Shelveset history?

Hot Articles

Version Control of Database Schemas
code migration - mapping users that don'…
Unable to add code to Source Control (to…
Branching advice
Delete same file twice - now find first …
Things I miss from Source Safe... any su…
problem in migrating the code
Time Stamp in Source Control Explorer
Could internal Version Control be replac…
A branch has been deleted but tf get sti…
Nice tool but small annoyances
Lock Project recursively
Adding CC list to work item/bug?
List all labels attached to a file/folder?
SQL Server Source Control Plug-In Not Av…

Recommend Articles

Is this Is right Way to Share Code in TF
Source Control Disabled
Migrate from ClearCase to TFS
Best Practices
Branching from a labeled version after a…
Really Delete from Source Control
How to search TFS comments from Visual S…
Cannot Delete or Move
Team Foundation caches virtual image wor…
Pending changes error
Cannot create new build type on TFS clie…
failed to save the project from vs2003
Microsoft Expression Interactive Designe…
Documentation on using the MSSCCI provider
Merge to Sibling Branch