I'm back from TechEd Europe where I ran into a case of the angry demo gods during my C# IDE Enhancements sessions. Joe gave this session in San Diego and did a great job so I had my work cut out to match his greatness. It's always great to find bad product bugs during a talk, it can only make you stronger for your next talk :)
Setup for demo failure
Part 1 - I was showing the new behavior of the Go To Definition Window. In Visual Studio 2003, if you right-click on a .NET Framework type (or a type that you don't have the source code for) it would open the Object Browser window. In Visual Studio 2005, right-clicking on a type w/o source code and selecting “Go To Definition” shows the metadata for the type as a source code file. The image below shows the dynamically generated source file based on the String class in the System namespace
Part 2 - I was showing off the some cool new options available in Visual Studio 2005 when you click on a file tab. These features include:
Combining these steps for disaster
To add insult to injury, my VPC hard drive which is a second hard drive in place of my CD player, stopped being recognized so even after restarting it wasn't working. Luckily for me, I was showing VWD Express in my next demo and I could use C# Express for another demo so I only didn't get to show FxCop integration and the Object Test Bench demo. OTB is one of the least known feature in Visual Studio 2005 so I'll be blogging about my demo later...
Note: You'll need the May Community Tech Preview to have this crash as Beta 1 works and opens the folder to: C:\DOCUME~1\[username]\LOCALS~1\Temp\3124$CommonLanguageRuntimeLibrary$v2.0.40607\System.String.cs