Ureader.com  
Microsoft software help and Community
   home   |   control panel login   |   archive   |  
 
tools
vsnet.act
vsnet.debugging
vsnet.documentation
vsnet.enterprise.tools
vsnet.general
vsnet.ide
vsnet.jlca
vsnet.servicepacks
vsnet.setup
vsnet.vsip
vsnet.vss
vsnet.vstools.office
vstudio.development
vstudio.extensibility
vstudio.general
vstudio.helpauthoring
vstudio.setup
vstudio.sourcesafe
  
 
date: Mon, 26 Feb 2007 06:55:16 -0800,    group: microsoft.public.vsnet.vss        back       


vs directory with vss   
How can I get VS05 to put the VSS projects in the correct directory?

We setup our project directories like this.

SolutionName
  Code (.sln file)
       WebSite
       WindowsFormsApp
   Documentation ()

When we get the project from VSS (get latest version) it doesn't put the 
files in the correct location.
It creates a directory like this.

SolutionName
  Code (.sln file)
       WebSite
       WindowsFormsApp
       Documentation (empty website)
   Documentation

You get two copies of Documentation. The one in the wrong location shows up 
in VS05.

If you remove Documentation from the project and disk and try to re-add it 
to the project with the files at the correct location, you get:

"The project file: "j:\SolutionName\Code\Documentation has been moved, 
renamed or is not on your computer".

The working directories in VSS are correct.
This happens whethe I get all the files or just the solution file
date: Mon, 26 Feb 2007 06:55:16 -0800   author:   Chuck P am

RE: vs directory with vss   
Hi Chuck,

As far as I know, the directory on your disk will the same as Visual 
SouceSafe. I have tried to reproduce your issue on my machine, but 
unfortunately, I haven't met such issue. I'm afraid you have done something 
wrong. Would you please give us some steps to reproduce the issue? We will 
continue to drill down into the issue and figure out the root cause. We are 
glad to assist you.

Have a great day,
Sincerely,
Wen Yuan
date: Tue, 27 Feb 2007 13:28:32 GMT   author:   (WenYuan Wang)

RE: vs directory with vss   
We setup our project directories like this.

SolutionName
....Code (.sln file)
.......WebSite
.......WindowsFormsApp
....Documentation (empty website)

When we get the project from VSS (get latest version) it puts the files in 
the correct location like this. 

SolutionName
....Code (.sln file)
.......WebSite
.......WindowsFormsApp
....Documentation (empty website)

However, when we open the solution file in VS05;  VS05 retrieves another 
copy of Documentation and places it under the Code directory.  

SolutionName
....Code (.sln file)
.......WebSite
.......WindowsFormsApp
.......Documentation
....Documentation

You get two copies of Documentation. The one in the wrong location (under 
the Code directory) shows up in VS05.
date: Tue, 27 Feb 2007 06:37:46 -0800   author:   Chuck P am

RE: vs directory with vss   
Hi Chuck,
Thanks for your reply.

If VSS puts the files in the correct location when you get the latest 
version, that means, this is not an issue related to VSS. According to your 
description, after you open the .sln file, VS05 retrieves another copy of 
Documentation and places it under the Code directory.  I think this is 
dependent on how you created the solution.

Did you add the Documentation (empty website) into the Solution?
I assume you created the Solution as below in Visual Studio 2005. 

SolutionName (.sln file)
...WebSite
...WindowsFormsApp
...Documentation (empty website)

For this reason, the Documentation project is a project in the Solution and 
the location is Code \Documentation. If you move the Documentation 
directory to another directory, VS2005 cannot locate this project. For this 
reason, VS 2005 will create a new Documentation directory under Code 
directory.

Please open your .sln file with "NotePad", there must be an entry as below.

Project("FAE04EC0-301F-11D3-BF4B-00C04F79EFBC ") = "Documentation ", " 
Documentation\ Documentation.csproj", 
"{E1B0BBEC-581D-4965-8708-BD1F34E419B1}"
EndProject

This is VS 2005 behavior. If you don't want Documentation to be retrieved 
by Visual Studio 2005, please remove this project from the Solution.

By the way, would you please paste your .sln file in the newsgroup if I 
assume something wrong. We will do further analyze on this. Many thanks.

Have a great day!
Sincerely,
Wen Yuan
date: Wed, 28 Feb 2007 06:23:37 GMT   author:   (WenYuan Wang)

Re: vs directory with vss (0/1)   
I do originally create the Solution like this:

SolutionName (.sln file)
....WebSite
....WindowsFormsApp
....Documentation (empty website) 

and it works fine.  I think the issue is probably with the suo file
and having multiple developers.  Some put the solution on their C
drive some put it on their J drive.  Once that happens, the horrors
begin.  You can see in the attached sln file, their are references to
a C drive.  I never use my C drive for anything; Other developers do.

When I start this solution I get "One or more projects in the solution
could not be laoded for the following reasons:  The project file or
web has been moved, renamed or is not on your computer.  these
projects will be labeled as unavailable in Solution Explorer.  Expand
the project node to show the reason the project could not be loaded." 
In solution explorer Documentation says unavilable.
If you try to remove the Documentation project and add existing
website and point to J:\DotNet2005\Survey Solution\Documentation. VS
won't let you and you get an error: The project file
J:\Dotnet2005\Survey Solution\Code\Documentation has been moved,
renamed or is not on your computer.  Interesting because you never
pointed to the Code directory.

If you go "add new website" and pick "Empty Web Site".  You can add
the project back.
However, if you save/close/open the solution.  You get the error:
Unable to open the Web J:\Dotnet2005\Survey
Solution\Code\Documentation.  The Web J:\Dotnet2005\Survey
Solution\Code\Documentation does not exist.  Interesting that it
thinks a project is there.
date: Wed, 28 Feb 2007 07:48:33 -0700   author:   Chuck P am

Re: vs directory with vss (1/1)   
			
			
				date: Wed, 28 Feb 2007 07:48:34 -0700   
				author:   Chuck P am
	
					

Re: vs directory with vss (1/1)   
Thanks Chuck,

I think I need do some further research and reply you as soon as possible.
By the way, if you have any more concerns on it, please feel free to post 
here. 

Thanks again for your understanding.
Sincerely,
Wen Yuan
date: Thu, 01 Mar 2007 13:22:17 GMT   author:   (WenYuan Wang)

Re: vs directory with vss (1/1)   
Hi Chuck,

Thank very much for your patience, I have consulted with Kevin(who is 
another engineer in our team). According to his description, he has met 
such issue half year ago and noticed this is a Visual Studio feature. 
Visual Studio will always created the project under solution folder (which 
include .sln file). If you wish to maintain the original structure, it 
might be a little complicated. We should have to remove the project which 
created by Visual Studio and add it again from the outside Documentation 
folder. 
http://groups.google.com/group/microsoft.public.vsnet.vss/browse_frm/thread/
24d1bd9a6dd58fce/cba0e7357dd8e00d?lnk=st&q=SolutionName&rnum=2&hl=zh-CN#cba0
e7357dd8e00d
[VS05 and VSS Doesn't respect Working Directory ].

For the other issues, do you mean you can't modify the file path for your 
Documentation project, and cannot add Empty Web Site, either?
>If you try to remove the Documentation project and add existing website 
and point to J:\DotNet2005\Survey Solution\Documentation. VS won't let you 
and you get an error: The project file J:\Dotnet2005\Survey 
Solution\Code\Documentation has been moved, renamed or is not on your 
computer.  Interesting because you never pointed to the Code directory.

Have you saved all files in solution, checked in the whole solution and 
checked out again? It seem like visual studio read the old version of .sln 
file.

>If you go "add new website" and pick "Empty Web Site".  You can add
>the project back.However, if you save/close/open the solution.  You get 
the error:
>Unable to open the Web J:\Dotnet2005\Survey Solution\Code\Documentation.  
The Web >J:\Dotnet2005\Survey Solution\Code\Documentation does not exist.  
Interesting that it thinks a project is there.

Similar to the former issue, I'm afraid you open the wrong .sln file.

Would you please provide some detailed steps how you modify/add the 
website? I have tried on my machine as following steps, but without error 
messages. Many thanks.

1.	Open the solution file.
2.	Change the file path of Document Website.
3.	Click save all files button and check in solution.
4.	Get last version from VSS Explorer and open .sln file again.

Please don't hesitate to let me know if I have misunderstood anything here. 
We are glad to assist you.

Have a great day,
Sincerely,
Wen Yuan
date: Mon, 05 Mar 2007 10:33:53 GMT   author:   (WenYuan Wang)

Re: vs directory with vss (1/1)   
We typically delete the local files, then get latest version from VSS.
We then get messages like can't find documentation site or can't find website.
In VS05 then remove the project and then try to  add it back.
Add new website seems to work best.
This usually works for the website but when you reopen the solution it 
usually can't find the documenattion again.


I guess we can give up on trying to create our sites like this.

 SolutionName
....Code (.sln file)
.......WebSite
.......WindowsFormsApp
....Documentation (empty website) 

and go to this format
SolutionName(.sln file)
....WebSite
....WindowsFormsApp
....Documentation (empty website)
date: Wed, 7 Mar 2007 06:53:05 -0800   author:   Chuck P am

Re: vs directory with vss (1/1)   
Hi Check,

Thanks for your reply. As you see, I'm sorry this is a VS feature. 
The Solution structure in VS should always be
SolutionName(.sln file)
...WebSite
...WindowsFormsApp
...Documentation (empty website)

Have a great day,
Sincerely,
Wen Yuan
date: Thu, 08 Mar 2007 07:28:58 GMT   author:   (WenYuan Wang)

Google
 
Web ureader.com


    COPYRIGHT 2007, YARDI TECHNOLOGY LIMITED, ALL RIGHT RESERVE  |   contact us