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 / December 2003

Tip: Looking for answers? Try searching our database.

Annoying auto checkouts in Visual Studio .NET

Thread view: 
Enable EMail Alerts  Start New Thread
Thread rating: 
Alan Abery - 15 Dec 2003 22:40 GMT
we have got a problem with Visual Studio.NET 2003 and
Visual Source Safe and we are wondering if anyone can shed
some light on the problem.

When I "Build" the solution I aways get prompted to check
in or "Discard In Memory Changes" of pages I had been
working on previously and had aleady checked in.  

When I "Get Latest Version" I am automatically prompted to
check out the aspx page only, not the aspx.vb or aspx.resx
files.  This means that other people cannot work on the
file.

Anyone got any ideas?
Alin Constantin [MSFT] - 22 Dec 2003 19:25 GMT
Hi Alan,

You can use the Tools/Options/SourceControl/General to tweak what actions
will VS 2003 do when files are edited, saved, etc.

From your saying, I suspect the checkout dialog you're getting is a
'Checkout on Save' (I suspect the project systems wants to save the files
before building).
Again, when you do a GetLatestVersion, we attempt to save the files before
the operation, which again I suspect it brings up the CheckoutOnEdit dialog.

It looks like your files are dirty in memory, which brings the question: why
weren't the files checked out immediately when you started editing them?
You should probably set up "Prompt for checkout when checked-in items are
edited", or "Checkout automatically when checked-in items are edited", and
do not allow checked in items to be edited.

As for "this means that other people cannot work on the file", it looks like
you're using a VSS database that has enabled exclusive checkouts only.
You may want to enable multiple checkouts in VSS database. Use SSAdmin for
this, and Tools/Options/General/Allow multiple checkouts.
Signature

Alin Constantin
[This posting is provided "AS IS" with no warranties, and confers no
rights.]

> we have got a problem with Visual Studio.NET 2003 and
> Visual Source Safe and we are wondering if anyone can shed
[quoted text clipped - 10 lines]
>
> Anyone got any ideas?
anonymous@discussions.microsoft.com - 23 Dec 2003 19:55 GMT
Thanks for this.  You are correct, the files are dirty.  
The pages in questions contains a datagrid in a table.  
Each time the page is viewed in the designer even when
Checked In the page is modified my Visual Studio (the *
appears in the page tab).  Hence the reason for Visual
Source Safe to prompt for checkout.

I did have "Allow checked in items to be edited" in an
attempt to stop Visual Studio from trying to check out the
file.  

I guess this leaves two questions
1) Why does Visual Studio modify pages with HTML Tables
containing Datagrids automatically when the viewed in
design mode?
2) When Visual Studio attempts to check out the file
because of the modification, why doesn't it check out the
complete page (aspx, aspx.vb & aspx.resx), it only checks
out the aspx file. When we try to undo checkout, it
prompts to check out the rest of the files.  This
seriously limits team development.

Your suggestion to allow multiple checkouts would solve
this problem to some extent, but doing team development
across remote sites, we do not what two developers working
on the same file.  

Thanks in advance.

>-----Original Message-----
>Hi Alan,
[quoted text clipped - 34 lines]
>
>.
Alin Constantin [MSFT] - 24 Dec 2003 18:01 GMT
Hi,

> 1) Why does Visual Studio modify pages with HTML Tables
> containing Datagrids automatically when the viewed in design mode?

This might be a bug in the HTML editor if it dirty the file just by viewing
it.
I tried reproducing this, but since I'm not much of  a web developper I
couldn't repro.
Could you walk me through simple step-by-step instructions so I can raid a
bug against the editor?

> 2) When Visual Studio attempts to check out the file because of the
modification, why doesn't it check out the
> complete page (aspx, aspx.vb & aspx.resx), it only checks out the aspx
file.

How did you determined it only checks out the aspx file and not all 3 of
them? By looking which files are displayed in the Checkout dialog that pops
up or by actually veryfing the files in VSS database (for the last one you
could also turn on ShowAllFiles in SolutionExplorer)?
The aspx.vb and .resx files are considered "special files" for the aspx
files. The scci code try as much as possible to hide them from the user's
view, and to display in the UI only the "master" aspx file.
If indeed only the aspx file is checked out, then it is an editor bug.
Basically, before starting to edit the file, the editor should call the
IVsSccQueryEditQuerSave->QueryEdit() function, passing in the filenames he's
about to edit.
The editor is supposed to call us with all the files it intends to modify
(aspx, aspx.vb, aspx.resx).

> When we try to undo checkout, it prompts to check out the rest of the
files.
> This seriously limits team development.

From this it seems that indeed you have only the aspx file cheked out.
Before undo checkout, the scci code wants to save the file. It seems that on
save the editor wants to save all 3 files, so now it calls QuerySave()
passing in all 3 filenames... It should have called from the beginning
QueryEdit() for all 3 filenames...

Signature

Alin Constantin
[This posting is provided "AS IS" with no warranties, and confers no
rights.]

> Thanks for this.  You are correct, the files are dirty.
> The pages in questions contains a datagrid in a table.
[quoted text clipped - 82 lines]
> >
> >.

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.