Andrew Connell

Use VS2005 to build v1.1 assemblies

A few days ago I noticed in a post on Scott Hansleman's blog regarding MSBuild... specifically he points to a post on Jomo Fisher's MSBUILD blog (btw: ) that documents how you can use VS2005 to target & build v1.1 projects! I'll be honest, I haven't spent any time looking at MSBuild, and seeing 9 steps in the process to make this work, I thought to myself "great, another hack". Jomo, I apologize... his freaking rocks! Follow the steps Jomo lists. All you are doing is creating a new MSBuild targets file (that points to v1.1), modifying your C# project file to use the custom MSBuild file you just created, test, see it break because there's a reference to a 2.0 namespace (generics), remove the 2.0 namepsace, build, run... watch it work! In about 45 seconds I was able to run the test myself. Also shipped my exe (built from within VS2005) to someone who didn't have any 2.0 stuff on their machine to have them confirm it was running in v1.1. Very cool! » Hack the Build: Use Whidbey Beta2 to target .NET Runtime 1.1...

A few days ago I noticed in a post on Scott Hansleman’s blog regarding MSBuild… specifically he points to a post on Jomo Fisher’s MSBUILD blog (btw: ) that documents how you can use VS2005 to target & build v1.1 projects! I’ll be honest, I haven’t spent any time looking at MSBuild, and seeing 9 steps in the process to make this work, I thought to myself “great, another hack”. Jomo, I apologize… his freaking rocks!

Follow the steps Jomo lists. All you are doing is creating a new MSBuild targets file (that points to v1.1), modifying your C# project file to use the custom MSBuild file you just created, test, see it break because there’s a reference to a 2.0 namespace (generics), remove the 2.0 namepsace, build, run… watch it work!

In about 45 seconds I was able to run the test myself. Also shipped my exe (built from within VS2005) to someone who didn’t have any 2.0 stuff on their machine to have them confirm it was running in v1.1. Very cool!

» Hack the Build: Use Whidbey Beta2 to target .NET Runtime 1.1

Andrew Connell
Founder & Chief Course Artisan, Voitanos LLC. | Microsoft MVP
Written by Andrew Connell

Andrew Connell is a web developer with a focus on Microsoft Azure & Microsoft 365. He’s received Microsoft’s MVP award every year since 2005 and has helped thousands of developers through the various courses he’s authored & taught. Andrew’s the founder of Voitanos and is dedicated to delivering industry-leading on-demand video training to professional developers. He lives with his wife & two kids in Florida.