MSDN has posted a good article on Refactoring C# Code Using Visual Studio 2005 that introduces the concept of refactoring and covers many of the techniques that are supported in the new IDE. This is a perfect time to plug Martin Fowler’s excellent book on the subject, Refactoring: Improving the Design of Existing Code. If you’d like to dive a little deeper, it’s worth adding this classic text to your library.
For those of you who can't use VS.NET 2005 for whatever reason, I've had good success with Xtreme Simplicity's C# Refactory tool.
Our cool new Portable Media Center devices are now available for pre-order through Amazon.com. Cool stuff!
The Microsoft .NET Framework Developer Center has posted a .NET Framework 1.0 SP3 and 1.1 SP1 Technical Preview that includes downloadable versions of upcoming service packs for both the .NET Framework 1.0 and 1.1. It should go without saying, but because this is a technical preview, it is unsupported and intended for testing purposes only (in other words, don't install it in a production environment).
For a look at the fixes that are available with each service pack, see the lists for version 1.0 and version 1.1. Additionally, 9 newsgroups have been created to report any bugs or problems that you encounter.
I was trying to install Visual Studio .NET 2005 Beta 1 on my laptop over the holiday, and I immediately received an error that said I needed to remove "Visual Studio .NET Prerequisites - English". At various times, this laptop has had the PDC release of VS.NET 2005 and one of the Community Technology Previews installed on it, but both of them have been completely uninstalled, and I couldn't find any remnants of either in Add/Remove Programs. I crawled the registry and removed a few suspicious keys relating to Visual Studio .NET version "8.0" and the .NET Framework version "1.2", but that still didn't help resolve the issue. Fortunately, I was able to find someone else with a similar problem in a post at Channel 9. DanTheMan came through with the following tip that ended up solving my problem:
Now why didn't I think of that!? Thanks, Dan!
This past weekend, I performed the biannual ritual of backing up my home computer, reformatting it, and reinstalling just those applications that I actually need. Of course, I'll try my best not to install too many add-ons or trialware applications for the next couple of weeks to keep my system clean, but inevitably, I'll give in and find myself repeating this cycle again in another six months. Thankfully, the average user doesn't have to go through this process nearly as often, but it did make me think...
How can I install Windows XP and download all of the critical patches from Windows Update before my machine is hit by something like the Sasser worm? Fortunately for me, my MSDN Subscription (and employment at Microsoft, I suppose) means that I have a copy of Windows XP with Service Pack 1 which contains a large number of fixes. This probably isn't the case for an average home user. Although we make a Windows Security Update CD available at no charge, the site clearly states that it may take 2-4 weeks for delivery, and most people who are forced to reinstall their system probably can't afford to wait that long. So I started looking...
Lo and behold, there is already a healthy amount of information available on the Internet that explains a couple of techniques that can be used to alleviate this problem. The first is an article by the SANS™ Institute titled Windows XP: Surviving the First Day. This paper describes a strategy that disables many of the most vulnerable attack surfaces, enables the Internet Connection Firewall, and explains how to download the appropriate fixes from Windows Update. This is a reasonable process if you don't reload your system very often, but there is a better way...
Slipstreaming: the process of including patches and fixes into a software installation. Using this method, you can create your own updated Windows XP CD that includes all of the patches (similar to what a MSDN Subscription provides, but in some ways better). Here are a few articles that I came across that explain how to do this:
· How to Slipstream Windows XP SP1a
· Making a Windows XP Slipstreamed Install CD
· Slipstreaming Windows XP Service Pack 1a and Create Bootable CD
· Create A Bootable Windows XP Installation CD Slipstreamed with SP1
And for the truly curious, we have an article that explains how all of this works titled How to integrate software updates into your Windows installation source files.