Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsFree MagazinesWhite PapersSubmit Content
Discussion GroupsASP.NETWindows FormsLanguages.NET FrameworkVisual Studio.NET
Articles.NET FrameworkASP.NETToolsWindows Forms
.NET DirectoryOpen Source ProjectsUser GroupsWeb Resources
Related Topics
Visual Basic 6SQL ServerMS AccessOther DB ProductsMS Server ProductsMore Topics ...

.NET Forum / Visual Studio.NET / Source Safe / February 2007

Tip: Looking for answers? Try searching our database.

vs directory with vss

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Chuck P - 26 Feb 2007 14:55 GMT
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
WenYuan Wang - 27 Feb 2007 13:28 GMT
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
Chuck P - 27 Feb 2007 14:37 GMT
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.
WenYuan Wang - 28 Feb 2007 06:23 GMT
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
Chuck P - 28 Feb 2007 14:48 GMT
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.

Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.