Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

[In addition to blogging, I am now using Twitter for quick updates and to share links. Follow me at: twitter.com/scottgu (@scottgu is my twitter name)]

This is the twelfth in a series of blog posts I’m doing on the upcoming VS 2010 and .NET 4 release.  Today’s post covers a small, but nice, change coming with VS 2010 – an “Add Reference” dialog that loads fast.

Add Reference Dialog in VS 2008

The slow performance of the “Add Reference” dialog in previous releases of Visual Studio has been a common complaint that many a developer (including yours truly) has ranted about.

Previous releases of VS opened the “Add Reference” dialog on the “.NET” tab by default – and when that tab was loaded VS would synchronously scan the global assembly cache (GAC) retrieving .NET assembly information.  Because the GAC scan was done on the UI thread, it would freeze the IDE until the scan completed – which meant that you couldn’t cancel the operation, even if you didn’t want to use that tab. 

Because GAC scans can often take awhile (if you have lots of assemblies installed and/or a slow hard drive), you could end up having to wait a really long time for the dialog to respond.

Add Reference Dialog in VS 2010

The Beta2 release of VS 2010 introduces a few welcome changes to the “Add Reference” dialog behavior that significantly improves its performance. 

The first improvement is that the “Add Reference” dialog in VS 2010 now defaults to opening on the “Projects” tab instead of the .NET tab.  This means that the dialog always loads really fast.  If you want to setup a project-to-project reference, or browse the file-system to select a file assembly, etc. you can now select these tabs immediately without having to wait for anything to load.

image

The second improvement is that the .NET and COM tabs now load asynchronously and do not block the UI thread while their lists are populated.  This means that if you accidentally click the tabs you are no longer blocked waiting for them to synchronously load – with VS 2010 you can now either click “Cancel” to close the dialog or click on another tab instead.

image

Hope this helps,

Scott

Published Thursday, October 29, 2009 12:12 AM by ScottGu

Comments

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:38 AM by Chris Walsh

Scott,

The issue with the .net tab, is while the async is happening and its being refreshed, its not sorting in alphabetical order...

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:46 AM by Scott Muc

You have no idea how much time that's going to save collectively amongst the entire .Net developer population ;-D

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:48 AM by Michael

This is really really good..

Thanks

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:53 AM by Joe Chung

The Object Browser is a nice way to add common .NET references to your project for pre-2010 users. It even correctly capitalizes System.Configuration. ;)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:53 AM by @terry_brown

fantastic news!  I tend to use VS powertoys "copy as project reference" and "paste project reference" - nice to see this is no longer needed!  great work fellas :)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:56 AM by Guy Harwood

Its all about the small things in life :)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:56 AM by Aleksey

It would be great to have an option to filter content on .NET tab - just as new Intellisense feature for object properties. Scrolling take a lot of time.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:58 AM by Ben Vanik

But still lacking XP theming support, causing ugly backgrounds ;)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 3:59 AM by Dave

Why not open the 'Recent' tab by default? Or add an option with the option to change the default reference tab.

@Criss: Items are added in a sorted fashion. Much like 'Installed Programs' in the control panel.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:06 AM by Lorenzo Van Eenoo

This is awesome! Was actually wondering a few days ago if this would be tackled in 2010.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:07 AM by OO

Would love to see this for the toolbox, too!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:11 AM by Ziv

Maybe load the System.* assemblies first as they are the most used

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:25 AM by [d3m0n]

> Why not open the 'Recent' tab by default?

Seconded. I never use the Projects tab.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:26 AM by Lee Englestone

Something so simple but something that caused a lot of arghh! moments.

-- Lee

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:36 AM by Youri

This is just great. I'd allways kept me wondering why this wasn't fixed in some sort of hotfix years ago.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:37 AM by Mark Heath

This is great. I have obsessive compulsive tab-clicking disorder, which means that I instinctively click on all the tabs in any tabbed dialog irrespective of whether I need to or not. This will make my Add Reference dialog usage much more streamlined.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:39 AM by Santosh Kumar

Hi Scott,

I downloaded the vs2010 beta2 express iso.I am trying to install the visual web developer. after the initial window, i am not getting anything.I am unable to install on my machine.

My Machine's Config:

Win XP

I have both vs2005,08 installed.

Thanks,

Santosh

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:39 AM by kojiishi

I think .NET tab has too many items to scan by human eyes. I wish it to have filtering capabilities as you type, just like .NET Refelector.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:45 AM by Boris Lehečka

Why these lists of assemblies, COM components etc. are not searchable? Who remembers full name of component? Why I must remember, that assembly for Word is named Microsoft.Office.Interop.Word or Microsoft.Office.Tools.Word? Please, add search functionality to this dialogbox.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:46 AM by Prabir Shrestha

hi,

great work.

just yesterday when i needed to reference some .net assemblies, i couldn't find it, and after waiting for some time it came up. the scroll bar was slowly increasing. then i realized tat it was workin asynchronous way.

can we have the same for copy website. the ftp support in vs is very slow and causes the whole ui to get stuck.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:57 AM by a.

if the default tab is "project" then this should be the first in the list

and how about getting back the behavior of 2005 (or maybe 2003) when you could add different type of references in the same type? now i have to reopen the window if i want to add a poject reference after a file reference

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:58 AM by Syed Mehroz Alam

Great. I also noticed that some refactoring operations (e.g. renaming some method or property) are also much faster than before.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:01 AM by simsod

This is probably THE best feature in VS2010! :)

Now only "Initializing Toolbox" remains!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:03 AM by Andrei Rinea

Well all's nice Scott but an animated graphic would help understand that loading is underway and when it has finished.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:05 AM by Stephen

Thats good, but it seems that it would benefit from a filter / search field, so it becomes more like the 'Open cache' feature of reflector.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:31 AM by batteryslave

great news. now what about the keyboard shortcut configuration dialog. it is still a usability nightmare.

keep on the good work

bslave

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:36 AM by shailatlas

Hello Scott,

Same was case with when you want to add something to your toolbox. Like I want to add AJAX control toolkit for Toolbox, and when I click "choose items", it takes forever to load. Is this is fixed ?

Thanks,

Shail

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:36 AM by Greg Neilson

Such a little thing makes such a big difference.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:47 AM by vik20000in

small but very required improvement.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 5:51 AM by Dejan

I always used to go grab a coffee everytime I would open the Add Reference Dialog. Now I have to find other "excuses" to do the same :)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:16 AM by Will

While these improvements are great, the fact that the .NET tab isn't sorted means that I have to wait until it finishes loading before I can find anything.  Also, it reloads every frigging time rather than caching the results.  All you need to do is validate the current list asynchronously rather than reload it.  Also also, no searching is lame.  So, nice improvements, better luck next time.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:25 AM by jeroenh

FI NA LLY!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:30 AM by Steinar Sturlaugsson

Good news. This was one of those simple things (if not simple - then why the heck not?) you just couldn't  figure out why weren't fixed before.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:32 AM by chandan

small but good change.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:42 AM by Dominick Baier

OK - only a little thing is missing to make this perfect ;)

Add a filter text box to the dialog - so one can filter the assemblies (especially for the .net and com tab) ...wouldn't that make sense?!

dominick

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:50 AM by DanAtkinson

Thank you for doing this! It's been a royal pain in my butt for years!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 7:19 AM by boriscallens

simple but awesome!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 8:41 AM by Jason Coon

Great news!  Now...  Can we resize the dialog (and all the other ones)?  I've never understood why most of the dialogs in Visual Studio are fixed-size.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 8:46 AM by Vriff Polo

How about a search box in the .NET and COM tabs, like .NET Reflector's "Open Cache" dialog?

Great work guys, looks like a stellar release!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 8:47 AM by Sameer C Thiruthikad

Yes, yes... It really helps!

@shailatlas,

No... 'Choose Items' on Toolbox still takes its own sweet time to load in VS 2010.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 8:58 AM by Fabrice Marguerie

Thanks. This was indeed much awaited.

Here are Connect entries for requests:

- Filter: connect.microsoft.com/.../ViewFeedback.aspx

- Sorting and more: connect.microsoft.com/.../ViewFeedback.aspx

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:03 AM by Stolo

THANK YOU. It's all about the little things, and that little thing will save me a ton of wasted time.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:26 AM by jstawski

FINALLY!

It's nice to be heard... This is exactly what we've proposing for the past 2 years...

Thank you...

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:29 AM by SR

fantastic improvment - its improvement on these otherwise 'small' things that improve the overall satisfaction of the user

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:33 AM by ace

search for assembly/type in add reference would be useful.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:40 AM by edddy

Where is the filter box?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:04 AM by Rob Eisenberg

This is going to make me more productive than any of the new language features...

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:06 AM by Gian Maria

Is the first thing I've noticed running vs2010 beta, I'm in a virtual machine and the add reference opened almost instantaneously

alk.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:09 AM by Kevin Dente

Awesome. Fantastic. Beautiful

I noticed that choosing items for the toolbox still has the older style synchronous UI. Any plans to change that before RTM?

Also, +1 for a search box for filtering the references list. It's a very long list this days.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:17 AM by Kyralessa

Yay!  Finally!

I wouldn't call it a small fix.  It's not just about the time it takes (which is a small amount), but about the way it breaks your flow when you open the dialog...and sit...and wait...and daydream...and think about where you're going to lunch...

Now, how about a patch or a hotfix for VS 2008 to speed it up there as well?  I understand that everyone's on a big push to get VS 2010 out the door, but a *lot* of us are still using VS 2008 (or even 2005 in some cases!) and would like to have that same beautifully fast code there too.  I can understand if they can't do VS 2005, but VS 2008 just isn't that old at this point, and we'll still be using it for some time to come.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:23 AM by Neslekkim

Improvements much appreciated, thank you!

Cache the content of the .net tab!!, when items are added to the GAC, why the h*** should it be so slow to lookup?, index it, cache it, make it faster to use.

And please, add an filter box for the .net tab, let me enter "xml" and give me everything with xml in the name..

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:38 AM by gm

Great to have this...  But I'd rather have the old behavior back.

Why?  because while the list loads in the background, you have no idea when it's done (drawback #1).  You also cannot sort the columns while the list is loading (drawback #2).

Combined, these two things make the new method worse than the old one, since on the old one you know you had to wait, and you knew when it was done loading.

With this one, you have to wait anyway (try to pick out your new reference out of 100 choices in random order, while the list is being added to), with the new aspect that you have no idea until when you have to wait.

The only trick I have come up with to make this bearable is to make the window as tall as possible (thank goodness it's resizeable) so that I can get feedback from the scrollbar on the right.  When the scrollbar stops changing size, it's either already loaded up a ton of elements, or it's done loading them.

Either way, the new behavior comes up short.  I'd rather have the old (slow, but deterministic) behavior.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:51 AM by Piersh

Great stuff. Can we get a filter textbox for the com & .net tabs?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:53 AM by imellor

This alone makes me want VS 2010

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 11:00 AM by Joe Wilson

Thanks!  Did you guys get a chance to fix the Toolbox and F1 Help initial open speed as well?  Or at least open them on a non-UI thread?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 11:16 AM by cwissing

I extra bought a new SSD, with the SSD adding references runs like a breeze, but now you do create an investment-hulk of it - shame on you :-)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 11:24 AM by Rajiv D

Please add option to search for components (as has been said earlier in the thread)

These days, anywhere we see >5 items, we want to search, Binary or Binary whatsoever :)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 11:47 AM by Gabriel

Nice Scott, that's awesome,

A Question,

About the Add Items to Toolbox that also look for assemblies, is it going to be faster? and Asynchronous? Minimizable? Leftasidable while you are still programming?

Thanks A lot.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 12:13 PM by Klaus

Please consider adding search/filtering...

But still: Thank you.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 12:19 PM by Al

Scott,

It's a great improvement.  I was wondering what would prevent to add an index for .Net, COM tabs so that way it would not need to scan entire GAC, registry every time you open it?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 1:31 PM by Martin de Ruiter

Hi Scott,

Very nice improvement indeed!

Perhaps another improvement would be to be able to resize that window, because as you can see in the screenshots, each line is not entirely visible, and sometimes you want to know e.g. the path of the assembly, being able to maximizing or resizing the window in such a case is just convenient.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 1:35 PM by akx

Wouldn't it be possible to have filter textbox in the dialog? It would make easier finding the library among, literally, HUNDREDS, of entries. Thanks.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 2:06 PM by Michael Herndon

@scottgu

Thank the VS 2010 team for the productivity boost!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 2:08 PM by John Gardner

And why isn't it filterable/searchable?  

If you guys moved that to WPF, then adding dynamic filtering to a list view it is only a few more lines of xaml! if, if, if :)

aside from the "Browse" tab, is there any reason why it is tabs at all?  Couldn't it be a big filterable tree/table view?  with either the current tabs being top level tree items (with recent at the top)...

it is "Better", but it still could be a LOT more useful!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 2:50 PM by Halo

Feedback:

1.  UI indicator that the .NET and COM references are still loading.

2.  Ability to filter the references by search string against the assembly name, file name, etc.

3.  Bring back the section at the bottom that permits you to add multiple types of references without having to reopen the dialog.

4.  Add ability to define named reference sets so that commonly used combinations of references can be added all at once.

5.  Improve ability to add references from Object Browser, such as the ability to select more than one assembly, explicitly target a specific project or selected projects in solution.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:03 PM by Nam

I love the enhancements for the Add Reference dialog. Thanks for the coverage.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:11 PM by Murat

Nice work.

Do you think about the toolbox?

VS 2003 toolbox tabs so useful. Because, when I open a expand a tab, other tabs collapse automatically.

New versions of toolbox is hard to use. firstly, I have to collapse all tabs when I open visual studio. Second, I have to collapse a tab after using it to use and see other tabs.

I think, there should be an option for this.I would like to use older version and you may like to use new version.

Think about it ;)

Regards,

Murat

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 4:42 PM by Crulex

My most noticeable performance complaint for VS 2008 is the time that takes the Exceptions dialog to load.

Also, a feature to save/restore settings of the Exceptions dialog (possibly by introducing multiple presets/profiles) would be a time saver.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:18 PM by Mike

That should be in Service Pack 2 for VS 2008, seriously...

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 6:39 PM by Bent Rasmussen

Still do not understand why you haven't introduced a search box on the "nightmare tab" yet - but these changes are certainly welcomed.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 7:01 PM by Gagan Rajpal

I think a filtering functionality for filtering / searching for assemblies would be extremely useful. I love the way the Assembly Cache functionality works in .NET Reflector. Similar functionality in the Visual Studio Add Reference Dialog Box would be really useful.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 8:19 PM by Justin Taylor

This change is worth the upgrade alone! Well done guys.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:33 PM by nishit_123

Nice Improvement.  That really use to stuck up my project work.  Thanks for the update scott.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 9:50 PM by Scott Weinstein

These are great improvements, but two additional features would help

1) The dialog should be wide enough to see the full name of typical assemblies.

1) It needs an incremental search/filter box, so the list can be quickly filtered based on just a few keystrokes.

<a href="connect.microsoft.com/.../ViewFeedback.aspx item </a>

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 10:21 PM by jack.niu

"significantly improves its performance", i like it. In vs2008, it may take me half minutes to wait for the dialog.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, October 29, 2009 11:55 PM by EricTN

Hi Scott, thanks for another great blog and another great feature.  But my big pet peeve with this and other VS dialogs is that, while it is resizable, which is very important - it doesn't *remember* how I resized it the next time I pull up the dialog (in the manner that, for example, the IDE remembers the way I last had it set up).  In fact, I want the column widths of the columnar displays on the tabs to be "sticky" as well - I want VS to remember how I've resized the columns.  Why?  Well, typically, the first column is the name of the project or assembly and it defaults to a narrow size where if you use a naming convention like MyCompany.MyCompanyProject.MyLibraryCategory.MyLibraryName for your solution's projects, there's no way you're going to see the .MyLibraryName.  So, you widen the column to see this important info in order to make your selection.  The dialog is dismissed.  Later you redisplay the dialog.  Sigh... you now have to resize the dialog itself back to a wide dialog (and if you have a widescreen display at high resolution - why not?), you click on the tab and ...sigh.... you have to re-widen the column you're interested in again.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, October 30, 2009 3:55 AM by Raj

A feature that should have been there before 10 years. Anyway its welcomed :)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, October 30, 2009 4:37 AM by Kevin Daly

That's a welcome change.

How far we've come...I remember the 2002 version opening by default on the *COM* tab...that was truly painful.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, October 30, 2009 6:56 AM by Fredrik

A great improvement, but...

A search/filter textbox on the .NET tab is something that i would find extremely useful.

It doesn't need to be fancy, just a simple filter. It would make finding the correct .net component so much easier!!!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, October 30, 2009 9:15 AM by Wes MacDonald

A search box on the .NET tab would be another welcome feature, but I love the asynchronous loading that has been added.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, October 30, 2009 9:40 AM by Ken

Scott,

Awesome!  

Someone probably mentioned this.  But please fix the Toolbox -> Choose Items dialog.  Pretty, pretty please make it so you can resize or maximize the dialog.  Try locating Infragistics2.Win.UltraWinListBar.v8.1 vs Infragistics2.Win.UltraWinListBar.V9.1.  You have to constantly shuffle and reshuffle your columns to locate them.  You shrink all other columns so you can read it, then you end up having to readjust to find another component.  Please fix this!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, October 30, 2009 11:09 AM by Dave R.

+1 for the following:

- Make the list load faster. Why is the GAC being requeried each time? It needs indexing so opening the dialog is instant. There's already a service to nGen assemblies, so why can't this be similar?

- Filtering as you type, e.g. "SMI" -> "System.Management.Instrumentation" or "Management" lists all assemblies containing that substring. There's no excuse for this not to be in, especially as it's now so prevalent elsewhere in the IDE.

- Let us choose which tab to open on. We shouldn't need a plugin for this.

- If near-instant loading of the references list isn't possible, then indication of progress is a must. There shouldn't be the need to keep an eye on the scrollbar, or watch hard disk activity to find out when the search has finished.

- Add an option to put System assemblies at the top. 9 times out of 10 I want one of these, but I have to scroll 80% down to get at them.

Thanks :D

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Saturday, October 31, 2009 1:11 AM by Dennis Gorelik

Both these changes are very welcome improvements.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Saturday, October 31, 2009 7:57 AM by ABE

great. And another vote for caching and filtering

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Saturday, October 31, 2009 5:10 PM by Sharbel_

I like this... most of the time when I need to reference something its either a project or an assembly that I need to browse to.  Beginning the dialog at the project tab will definitely speed things up.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Sunday, November 1, 2009 2:27 AM by YP

Hi Scott,

How about doing a blog on "Static Reflection". I really like reading you blog, examples are simple and short and to the point.

Thanks,

Yashwant

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Sunday, November 1, 2009 2:28 AM by sam

Finally, its about time

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Sunday, November 1, 2009 12:34 PM by Dave Bacher

Scott,

That's awesome -- now if you can do the same thing for pressing F1 accidentally (or intentionally), that would be great.  I understand it's out of process COM, etc. etc. etc. -- but is locking the IDE for several minutes while the help collection is rebuilt really necessary?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Monday, November 2, 2009 3:35 AM by nishit_123

very nice improvement. I use to stuck up adding a reference before. Thanks scott.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Monday, November 2, 2009 12:50 PM by Harshil Patel

Thanks scott,

Ths is goign to save tonns of time in the developer community altogether. Atleast now we do not have to wait to get our references added :)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Monday, November 2, 2009 5:53 PM by flyspirit

I like this improvement

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Monday, November 2, 2009 7:25 PM by Peter Wone

It would be even better to pre-populate the lists on a background low-priority thread. I second the requests for filtering the lists. Just a progressive-match textbox to move the selection. If you're feeling awesome how about progressive match supporting wildcards, eg "*Toolk" would show the four System.Windows.Controls.DataVisualization.Toolkit assemblies.

Really this would be even better if you could right-click an unresolved data-type and select "Resolve DataType" from the context menu with child menus for 'NET, COM, PRojects, Browse and Recent, showing the enhanced Add Ref dialog. Whether the using clause should be automatically added or the datatype rewritten fully qualified should be inferred from whether this would obscure an already imported namespace.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Tuesday, November 3, 2009 2:03 AM by mkennedy

Scott, I want to second (or third) some of the mentions for a SEARCH BOX please!

I even drew a picture: http://twitpic.com/o3rkl

Remember, there must be a hot-key to set focus to the search box...

Thanks,

Michael!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Tuesday, November 3, 2009 7:56 AM by Bob

Sigh...

Instead of actually fixing the performance problem, you're going to disguise it by making the assembly reference screen harder to get to.  Sorry not to be very excited about this...

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Tuesday, November 3, 2009 11:59 AM by silverwebs

Another change that will save me lots of time. Thank you.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, November 6, 2009 8:59 AM by dotnetfunda

This is really a very good enhancement Scott. Thank you for sharing.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Sunday, November 8, 2009 10:16 AM by hassan.live

What a catch by you guys! i thought i was among few people who were hurt!(don't want to use harsh language with my IDE of heart) with Add Reference slow performance. Thanks a lot. You guys are amazing.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Monday, November 9, 2009 6:58 PM by WinstonPang

Nice one.

But what about Choose Items in the toolbox? That's still synchronous!!

Also, maybe a future feature request, but perhaps a quick filter for the add reference and choose items dialog?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Sunday, November 15, 2009 10:18 PM by weitzhandler

Finally!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, November 20, 2009 6:24 AM by herzevekil

Thanks your article.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Sunday, November 22, 2009 7:58 AM by alessandro

Fantastic. Add references dialog has been slow since the very first release. This is great news!

I look forward to VS2010 already.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Tuesday, November 24, 2009 11:17 AM by Tim

Scott,

How about adding asynchronous support for when a user presses F1 for help?  It is super annoying to accidentally press F1 and then have to sit there for a minute because the IDE is locked until Help is finished loading.. F1 should not lock the IDE.. Thanks for at least this change.

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Wednesday, November 25, 2009 11:26 PM by Sunny Nagi

Thanks scott..!

good stuff by your team, may be i think we need to have the default tab as customizable, I have worked on some project where COM was preferred reference and I hated wasting my time from dialog box to load up .net values first before it allowed me to change to COM.

Just an idea :)

Cheers

Sunny

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Thursday, November 26, 2009 9:18 AM by VIVEK JOSHI

Its good because developer sepend a lot of time to add the refrences

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Monday, November 30, 2009 8:22 AM by scorpioking

better if it has 'Progress indicator' on tab itself when its still loading the list. (just like AJAX indicators !!!)

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Tuesday, December 1, 2009 4:12 AM by tyzak

where can i open the "add reference dialog"?

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, December 4, 2009 4:31 PM by toddpi314

Thank god!

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, December 4, 2009 4:41 PM by toddpi314

Toolbox sure is a slow one too

# re: Add Reference Dialog Improvements (VS 2010 and .NET 4.0 Series)

Friday, December 18, 2009 5:17 AM by santhosh kumar

I have added a assembly in the GAC 4.0 and when i seen in the physical path it was there.

But where i try to add it to the project thro' Add -> reference , I can't find the assembly. Any idea on it.