Scott Hanselman

Scott's List of Ultimate Visual Studio.NET AddIns

November 12, 2004 Comment on this post [18] Posted in ASP.NET | Web Services | NUnit | XML | CodeRush | Bugs | Tools
Sponsored By

In the vein of my Ultimate Tools List, here's my list of Ultimate Visual Studio.NET Add-Ins.  This list is by no means exhaustive, but I loves me some Add-Ins, so here's the ones that make my life better.

  • CodeRush - Of course. It's the bomb, enough said.
  • Peter Blum's ADME - ASP.NET Design Mode Extender (“ADME”) helps custom controls to provide a better design mode interface. This supports his Validation Controls, which rock, but also controls that you might write that need richer Design Mode Support.
  • CodeSmith Explorer - Generate CodeSmith code and templates directly from VS.NET
  • CopySourceAsHtml - Better than a Macro, this Add-In puts syntax-highlighed HTML on your clipboard. Now it supports "Embedded Styles" for use in BlogJet and other tools.
  • GhostDoc - Here's an Add-In I'd overlooked previously, now in it's 1.2 version.  GhostDoc attempts to generate C# documentation that can be gleaned from the name and type of methods and properties. Roland Weigelt has big plans for version 1.30 that will include customizable text and rules. One to watch, and while it sometimes guesses wrong, it's a completely unique Add-In worth your download.
  • devMetrics - devMetrics is a free tool for measuring various attributes of your C# code so that you can accurately assess your product for quality and maintainability. I use it to measure cyclomatic complexity and abuse people during code reviews.
  • QuickCode.NET - This has been largely supplanted by CodeRush, but if you don't want to pay as much, this cool tool gives you phrase expansion and a surprising number of code expansions available on their user forum.
  • Mindreef SOAPscope - The original. The glory forever, this is more than an Add-In, it's a complete XML Web Services design studio. It's a bargain and works even better when setup in a workgroup. It keeps a database of all Web Services traffic, but it's more than a sniffer. It also analyzes data for WS-I compliance and allows for record and replay of messages. "It's Tivo for Web Services!"
  • NUnit Addin, now TestDriven.NET - If you're serious about TDD, stop fooling with NUnitGui and Attach Process and start using TestDriven.NET. It's a simple as Right-Click -> Test With -> Debugger.
  • pinvoke.net - Adam Nathan continues to innovate with an add-in that lets you "Insert PInvoke Signature" from the VS.NET Editor by communiating with a server-side repository with best-practice signatures to make calling unmanaged code a breeze. Also, be sure to visit the PInvoke.NET Wiki.
  • Reflector as an AddIn - A joint effort, run Lutz's unbelievable decompiler/explorer with Jamie's Add-In support. (There's a number of other slick, but alpha-quality addins at that link as well, including FxCop as an AddIn.)
  • Regions AddIn - Finally, something useful from CodeProject, this add-in helps organize your code with a simple Right-Click -> Add To New Region and Right-Click -> Add To Existing Region. You'll wonder how you lived without it!
  • Unleash it! - The great ASP.NET deployment tool with the unfortunate name. Formerly known as WebDeploy, this Add-In lets you deploy your ASP.NET application using whatever it takes. Now with plugin support!
  • WS Contract-First - Christian Weyer leads the pack with custom Web Service code generation, and coming soon, generation of WSDL itself from Message-based XSD. How's that for SOA and contract-first development?
  • VSCmdShell - Open a Command Prompt within a Visual Studio.NET 2003 Docked Toolbox Window!
  • CommentReflower - Really detail-oriented? This tool reformats your code comments to your specifications.
  • OnlineSearch - Search the Internet and Google directly from VS.NET!

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

A potential CAPTCHA Comment Spam Solution for dasBlog (and others) with no recompile or code changes

November 11, 2004 Comment on this post [10] Posted in ASP.NET | DasBlog
Sponsored By

I took Jeff Atwood's CAPTCHA example and added a new event called "UserValidationEvent"

Public Event UserValidationEvent As EventHandler

Then I raise the event at the VERY end of ValidateCaptcha I raise it:

RaiseEvent UserValidationEvent(Me, New EventArgs)

I made it a separate event because I want the CaptchaControl to integrate with my blogging software WITHOUT any code on the server side.  I didn't want to have to recompile dasBlog or check anything in the Page_Load.

I made the appropriate web.config changes as per Jeff's instructions, and I added the control to the CommentViewBox.ascx and put this code at the top:

<%@ Register TagPrefix="cc1" Namespace="WebControlCaptcha" Assembly="WebControlCaptcha" %>
<script Language="C#" Runat="Server">
  protected void Foo(object sender, System.EventArgs e)
  {
  if (Page.IsPostBack == true && CaptchaControl1.UserValidated == false)
   {
    Response.Redirect(Request.RawUrl);
   }
  }

  protected void Page_Load(object sender, System.EventArgs e)
  {
   //Ya, ya, I know I could have hooked this event up a number of ways
   // including AutoEventWireUp but I like this fine, and it feels
   // more explicit to moi.
   CaptchaControl1.UserValidationEvent += new EventHandler(Foo);
  }  
</script>

There are a few Font issues to work out...he has it setup with a number of "no-no" fonts, while I'd prefer a list of "allowed" fonts. 

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

CommentSpam: It has begun, next steps?

November 10, 2004 Comment on this post [12] Posted in DasBlog
Sponsored By

Some one has started comment spamming me. What's the comment spam solution for dasBlog (other than turning them off?)

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Halo 2: There's more to it than you think. Have you seen the "GameViewer?" And the Games RSS Feed?

November 10, 2004 Comment on this post [6] Posted in ASP.NET | Gaming
Sponsored By

Ya, ya, the graphics are great, game of the year, whee.

What's REALLY interesting is the ASP.NET application that runs Bungie.NET. You can link your Passport and XBox Live Gamer Tag and get statistical data on every game you (or anyone) has ever played.  You can get details on clans, maps, friends, everything.

For example, here's a game (#650296) where Robert McLaws spanked me. Here's every game I played last night. Here's the details on Clan "Zen."

There's a depth to their data gathering that goes far beyond the game itself, and beyond anything XBox Live or any major massively multiplayer thing I've ever seen.

Additionally, are you ready for this? To the right here is a "GameViewer" with a view of each game, including perspectives on exactly where Robert kicked my ass in this specific game instance.

If that's not all? How about an RSS Feed of all my Halo 2 games? 

Drink that in my friends. I wonder if there's some OLAP in there. I'd be fascinated to see the database schema.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

The Scary Google Desktop Search Hacks have begun...now, search more file types

November 10, 2004 Comment on this post [1] Posted in XML
Sponsored By

Good Part: John Batdorf showed me that they've already hacked Google Desktop to search more file types.  Google Desktop Search Plus (GDSPlus) from Larry Gadea will search more kinds of text files (XML, SQL, BAT) as well as source files!

Scary Part: You have to installed patched binaries. Oy. Not for the faint of heart.

About Scott

Scott Hanselman is a former professor, former Chief Architect in finance, now speaker, consultant, father, diabetic, and Microsoft employee. He is a failed stand-up comic, a cornrower, and a book author.

facebook bluesky subscribe
About   Newsletter
Hosting By
Hosted on Linux using .NET in an Azure App Service

Disclaimer: The opinions expressed herein are my own personal opinions and do not represent my employer's view in any way.