-
February 19th, 2004, 11:15 AM
#1
SourceSafe dsp and dsw files
We have just started using SourceSafe to store my Visual C++ projects. There are many programmers sharing the database.
I know we have to keep the .dsp files under source control, but I am not sure about the .dsw files - do I need to keep these as well?
An annoying thing that happens though is that I want to use the automatic check-out facility by ticking :-
"Use read-only flag for files that are not checked out"
However, when I do this and open Visual Studio, I keep getting prompted to check out the .dsp and .dsw files.
Why does VS do this? I am not explicitly changing these files? Does VS automatically change them on opening?
It is good to be prompted when I DO make a change to project settings, but really annoying to have to keep clicking "no" on startup.
Any idea how to get around this?
-
February 19th, 2004, 12:48 PM
#2
If the workspace contains a single project it is not required to add the .dsw file in SourceSafe.
Whenever the .dsw file is missing it is automatically generated selecting
files of tipes "Projects(.dsp)" in the Open Workspace dialog.
The probem may change when have more projects in an workspace,
but just avoid this, and you'll have no more headaches.
-
February 19th, 2004, 09:56 PM
#3
It's true that you can get away without adding the DSW file to SourceSafe, but you are probably better off keeping it under source control. This is especially true for workspaces with many projects. The project build dependencies are kept in the DSW file and if the project is going to be shared by a development team it will be required in order to keep the build process reliable from one developer to the next. It's kind-of like not putting the makefile under source control, it's a very bad thing.
You'll find that once you add the DSW files to VSS it will want to change them at first as all the project interdependencies are added and source control links added. But once the workspace is stable you'll find that you almost never have to check it out, unless you are adding projects or changing the dependencies.
Good Luck!
John
nhojmc@hotmail.com
-
February 20th, 2004, 04:59 AM
#4
Thanks for your help.
I need to keep both .dsp and .dsw files.
I am still left with the annoying startup problem though :-
"Use read-only flag for files that are not checked out"
When I do this and open Visual Studio, I keep getting prompted to check out the .dsp and .dsw files :-
"The file is under source code control and has read-only attributes. Do you want to check it out?"
Why does VS do this? I am not explicitly changing these files? Does VS automatically change them on opening?
It is good to be prompted when I DO make a change to project settings, but really annoying to have to keep clicking "no" on startup.
Is there any way to make these files an exception to the "Use read-only flag for files that are not checked out" rule?
-
February 20th, 2004, 06:11 AM
#5
Sounds like your source control is mucked up. You have to be very careful when adding projects to source safe.
The dsw is essential to add to source safe because it also contains the source safe paths to each project. This is so that visual studio knows where the projects are.
I always add projects to source safe from inside of VC++ - I.e. by means of the source safe toolbar.
Darwen.
-
February 20th, 2004, 07:55 AM
#6
Darwen,
Thanks, I think that is what has happened.
When I check out the dsp and dsw files then check them back in, the annoying prompts go away.
Looking at the .dsp file, the change that has been made is to set up Scc_ProjName and Scc_LocalPath.
I will need to check this is OK for all my colleagues, but as long as they all use ther same directory structure it should be OK.
Thanks a million..........Martin
-
February 29th, 2004, 11:20 AM
#7
Originally posted by darwen
The dsw is essential to add to source safe because it also contains the source safe paths to each project. This is so that visual studio knows where the projects are.
Well, there is not so essential because the same info is contained in the DSP file
(see # PROP Scc_ProjName).
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|