Geeks With Blogs
Path Notes of a Kodefu Master blog March 2009 Entries
Notes on SampleDocViewEditor
The SampleDocViewEditor from the Visual Studio 2008 SDK is useful for figuring out how to create a designer view for an xml file. However, as noted by Nikita Frolov, there is some trickery involved that will cause it to not work for you if you use a different extension. I found out that if I change the test extension, used in the sample, to something else (say, .testaddin), it would not receive "View Code | View Designer" options in following situation: 1. Create a new project 2. Add ".testaddin" ......

Posted On Thursday, March 26, 2009 11:11 AM

MVP Global Summit
I attended the MVP Global Summit 2009 in Seattle/Redmond, Washington a couple of weeks ago. I had a pretty good time hanging out with other MVPs and the Managed Languages team. I learned a lot, and I had a blast every evening. One of those evenings was at the Experience Music Project, and I promise I will post Steve Andrews, "I love TFS" if I can find the video. Here's the opening video for the event, followed by a behind the scenes look with Karen Young ......

Posted On Monday, March 23, 2009 6:57 PM

Package Attribute Guid Confusion
One of the things that confused me about the attributes used to decorate a Visual Studio were the hardcoded guids in the examples. I didn't know where they came from or what I could use. In fact, I had the impression I had to generate my own guid for each definition like how you need to assign one for an editor factory. It turns out that these are defined guids that you must use for certain activities. They're defined in Microsoft.VisualStudio.VSCo... as static readonly. Like String.Empty, this ......

Posted On Monday, March 23, 2009 5:12 PM

IE8 Released
IE8 has been officially released and the download is available. So why should you download IE8? Well, out of all the new features, accelerators are the best! No, it isn't some trick to load web pages faster. Instead, accelerators accelerate your own web browsing experience. For example, just yesterday, I had to find the meeting location where I was giving a presentation. I also need to pull up directions. After I found the address, here's what I would have to do in other browsers to get directions: ......

Posted On Friday, March 20, 2009 5:55 PM

Visual Studio Eats Exceptions
The managed package framework for Visual Studio eats exceptions. I discovered this while building my own editor. I started with the package that the wizard creates for you, but I needed different designer rather than the rich text box it gives you. I initially attempted to gut the designer and implement my own functionality. However, it kept throwing a strange exception on me that I could not correct. I reverted back to the designer that was there, then created a DecisionTablePane class and implemented ......

Posted On Friday, March 20, 2009 4:48 PM

Reset Experimental Hive
When developing plugins for Visual Studio 2008, your testing is done in what's known as an experimental hive. It's essentially Visual Studio running in a testing environment. This keeps your unfinished plugins from being added to your "real" Visual Studio environment. Unfortunately, this experimental hive tends to become junky. After going through tutorials, you're bound to have all kinds of unnecessary elements added to the IDE. I spent some time trying to clean this out, and I discovered that the ......

Posted On Thursday, March 19, 2009 3:05 PM

CustomDictionary Fail
When I ran code analysis on my project, I predictably had some complaints concerning naming. Obviously, kodefu is not a dictionary term. The solution is to add a custom dictionary to the project. <Dictionary> <Words> <Recognized> <Word>Kodefu</Word... </Recognized> </Words> </Dictionary> I added this dictionary and reran code analysis. Complete fail; it still did not recognize kodefu. Whoever wrote the msdn documentation forgot to mention an essential ......

Posted On Thursday, March 19, 2009 1:27 PM

IsSubclassOf
It appears that I missed an important method that belongs to Type when making the extension method IsType. Jason Olson pointed out that type.IsSubclassOf would provide the functionality necessary to fulfill my coworker's requirement. The functionality and implementation of IsType is a little different, however. IsType will check the current type then recursively checks each BaseType. IsSubclassOf will return false if the original check indicates that the types are identical. Also, it uses a while ......

Posted On Wednesday, March 18, 2009 1:39 PM

IsType
A coworker approached me earlier with a scenario that involved using reflection to find all of the properties in a class that were derived from a specific type. I walked through using reflection to do this, but then I was unable to find a way to interrogate the inheritance chain to determine if the type derived from the type we cared about. You can use the "is" operator because the type is Type, not an instance of the type. I ended up making an extension method to do the job. Of course, one could ......

Posted On Tuesday, March 17, 2009 6:34 PM

Future Vision Montage
I like Microsoft's vision of the future, but we seem to have given up on flying cars and robots that do all the work for us. Danger, KodefuGuru! Video: Future Vision Montage ......

Posted On Monday, March 16, 2009 6:24 PM

Zune Game Development Book
Zune Game Development Using XNA 3.0 by Dan Waters will be released on March 23rd. Here's the product description: XNA 3.0 brings you the ability to create games that will run not just on the PC and Xbox 360, but also on the Zune mobile device. While creating games for Zune is, in many ways, similar to working on the other platforms, it also presents its own unique set of challenges and opportunities. Smaller screens, limited storage, and less processing power all affect the way you need to think ......

Posted On Monday, March 16, 2009 6:11 PM

Daylight Savings Time
Daylight Savings Time went into effect this past Sunday, and nearly all of my devices updated correctly. However, my Windows XP work PC didn't. My first inclination was to check the date/time settings. It was set to Eastern Standard Time, and the checkbox for adjusting for daylight savings was checked. I then set the clock ahead an hour, but a few minutes later it reverted back when it synchronized with the time server. I contacted the system administrator, and he said that my workstation was one ......

Posted On Wednesday, March 11, 2009 8:51 AM

Copyright © Chris Eargle | Powered by: GeeksWithBlogs.net