tags:

views:

760

answers:

2

I'm just getting to grips with TFS 2010 (never had any luck with TFS 2008), and I'm trying to add my first solution into TFS. However I am getting the warning message:

The project that you are attempting to add to source control may cause other source control users to have difficulty opening this solution or getting newer versions of it. To avoid this problem, add the project from a location below the binding root of the other source controlled projects in the solution.

Can someone explain to me what this means and how to resolve it? This warning is displayed when right clicking on the solution in Solution Explorer and selecting "Add to Source Control"

+3  A: 

Is your solution folder structure like this?:

Solution Root folder
    | 
    .sln solution file       
    |
    Project1 folder
         |
         Project1.csproj   (or .vbproj)
    |
    Project2 folder
         |
         Project2.csproj   (or .vbproj)

...

Mitch Wheat
No - there are 2 projcets, in separate folders with a sln file in one of them - is this the problem then?
Calanus
Yes that was the reason, have some points!
Calanus
A: 

The following issue can sympomatically manifest the error you reported. Remember, referenced assemblies need not be in any specific location in either TFS or in the file system of your workstation.

An underlying problem is that some types of projects default to the "Client" version of the targeted .NET Framework. The Client versions strip out assemblies that are usually not used in deployable projects. Furthermore, any assembly your project references must also not reference assemblies omitted by the Client profile.

Simply change the Target framework setting of your project to the full framework version.

Check out my blog post, regarding this issue: http://thecurlybrace.blogspot.com/2010/09/visual-studio-wears-sabots.html

Kainpwnsu