The length of the path in Visual Studio is computed as follow:
- Path to solution:
C:\Users\username\Documents\Visual Studio 2010\Projects\Health12.Domain12.WardManagement\
= 89 chars - 2 * Project name :
Health12.Domain12.WardManagement.Service.Contract\
= 50 chars - Reserved chars : Additionnal characters for the files in the project, the compiled files, temporary files, ... = 80 chars
In your case: 89 + 2*50 + 80 = 269
The limit is 259 ((Drive char):\(256-character path)
) (see Naming Files, Paths, and Namespaces)
You have to remove 10 chars. Either you reduce the length of the path to the project by 10 chars or you remove 5 chars in the project name ("tract"
for example works).