Browse by Tags

Dynamic Code Generation in .NET
05 January 08 03:08 PM | john | 0 Comments   
I recently had the need/desire to dynamically generate some code in .NET. It's not something you tend to do a lot unless you are creating a compiler, so it was an interesting experience. In the end it didn't solve my problem, but it was educational none-the-less. Read More...
More .NET Custom Configuration Madness
09 December 07 04:46 PM | john | 0 Comments   
I have to blog about this before I do anything else. I just found out that if you specify a configSection in your .exe.config file it must come as the first element in the configuration section! I had done this: <? xml version ="1.0" encoding ="utf-8" Read More...
Filed under: , , ,
Outlook macros for processing e-mail
24 July 07 05:48 PM | john | 0 Comments   
I don't write many Outlook macros primarily because I don't have time to learn the CDO document model. But once upon a time I wrote a couple of macros that have become invaluable to me ever since. Some background. I process my e-mail roughly like this: Read More...
Filed under: , , ,
VS Macro to insert TODO
04 May 07 04:59 PM | john | 2 Comments   
Here's another useful VS macro. When I write code there are always weird edge cases that I think of while so I like to liberally sprinkle // TODO: comments around. When you do this though you should always put in your alias and the date. That way someone Read More...
Filed under: , , , , ,
Running MSBuild scripts programmatically
01 May 07 11:39 AM | john | 2 Comments   
I love msbuild. Before it came along I was a big nant user, but now I'm an msbuild convert. It's not perfect, but it sure is better than batch files. It really, really needs embeddable code snippets, and a debugger but once it has those it will totally Read More...
Filed under: , , ,
Reading Custom Configuration Sections in .NET 2.0
22 March 07 09:35 AM | john | 2 Comments   
I just spent an annoying amount of time figuring out how to do this because sadly our documentation is so bad. So I'm going to blog it quickly so that I at least have a record of what I did and hopefully someone else will find it useful. Thanks go to Read More...
Filed under: , , ,
VS Macro to Insert GUIDs
03 January 07 03:56 AM | admin | 2 Comments   
One of the most useful macros I ever wrote in VS was but a single line. All it does is insert a GUID at the current selection point. It was so useful I wrote it twice; once to insert lowercase and once to insert uppercase GUIDs. Here it is: Imports System Read More...
Filed under: , ,
Dynamic vs. Static Instrumentation
15 November 06 09:14 AM | john | 0 Comments   
As you know if you are a Visual Studio Team System user, we provide two types of profilers with the product; sampling and trace. If you are not familiar with this feature of VSTS, one place to start are the excellent TechNotes under the Development heading Read More...
How to Upgrade Software with a Windows Installer Package
13 November 06 04:32 PM | john | 0 Comments   
One of the things that you often want to do when creating a Windows Installer using WiX is to uninstall the existing product before installing the new one. This is referred to as doing a " major upgrade ". The way to pull this off is to add the following Read More...
Filed under: , ,