Troubles with TFS

I recently inherited a project from a fellow ML developer who had been having issues getting the project checked into source code.  I attempted checking the code in myselft and received the following error:
 
The project cannot be added to source control because it overlaps a project that is already bound to source control at a lower root.
 
A little research and here is what I found was the issue.  The solution contained two projects, one a Library and the other a WebPart.  The solution referenced the WebPart’s Assembly Key, the key used to sign the assembly, as a solution item.  When Visual Studio attempted to check the code into Source Control through TFS Team Explorer the error would occur.  This is because Team Explorer was trying to check in the Solution Items as thought they were physically located in the solution folder.  Because the key was actually located in the project then the check in failed. 
 
I resolved this issue as removing the key as a solution item, infact I removed all solution items, and then attempted to check in the code.  This time the check in went successfully, thus as a word to the wise make sure your solution items are physically located in the solution folder and not referenced from sub projects.
Advertisements

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s