powershell script – find orphaned C# files

I ran across a C# file that had been removed from its csproj file, but it hadn’t been deleted from version control.  So I wrote a script (Chris Sidi had already written one, though) to find the .cs files that weren’t in the “containing” .csproj file   param([string]$csproj = $(throw ‘csproj file is required’)) $csproj…

3

macro to "organize usings" for a project

I won’t claim this is efficient, or well-written, or whatever, but it WorksForMe and I figured I’d share.  Feel free to post better versions in the comments or on your own blog and add a link as a comment 🙂 Option Strict Off Option Explicit Off Imports System Imports EnvDTE Imports EnvDTE80 Imports EnvDTE90 Imports…

1

Enterprise Edition

What’s your favorite?   Chris Rathjen‎‎ [9:05 AM]: i take it you want enterprise? ‎‎James Manning‎‎ [9:05 AM]: NCC-1701 *D* please ‎‎Chris Rathjen‎‎ [9:05 AM]: dude the E kicks the D’s ass ‎‎James Manning‎‎ [9:06 AM]: yeah, it does but D has more sentimental value to me ‎‎Chris Rathjen‎‎ [9:06 AM]: true true

1

collection and property initializers are so nice

I happened to change a piece of code over the weekend and used both.  It’s a tiny piece of code, so I thought it would make a good example of just how much readable code is using them. Before: List<Property> p = new List<Property>(1); Property pr = new Property(); pr.Name = “Description”; pr.Value = Description;…

1

Hyper-V has shipped!

http://www.microsoft.com/hyper-v Many people on our team (including myself, of course) have been running pre-RTM bits (the beta that came with Windows Server 2008, RC0, RC1, and their escrow build), and we’ve been extremely happy with it.  It’s light-years ahead of Virtual PC / Virtual Server.  I’ve already consolidated 4 of my previous machines down to…


Another James loss == another customer win

For those keeping score, last time it was Windows Server 2008. For various reasons (that I won’t bother reiterating here, since there’s no value in doing so), I wanted to make our next release 64-bit-only.  There’s a little bit of precedence in that Exchange 2007 had already done so, and the way we’re currently thinking…

1

HashTab – easily see the hashes for files

While wanting to verify the hash of a dd-wrt firmware I downloaded, I read about this app called HashTab that makes it a simple shell extension.  What a great idea!  The license agreement phase of the install states it simply enough: I love that you have to click "I Agree" to that statement 🙂 Now…

2

Odd Server 2008 link speed issue

Despite having a 1 Gbps Intel network card plugged into a 100Mbps switch, my Link Speed claims 10Gbps.  So, while I’m pushing 75Mbps of traffic (copying the vhd file as per previous blog post), it claims a network utilization of 0.75% instead of 75%. Other co-workers (that happen to have the same kind of machine/card)…