IanG on Tap

Ian Griffiths in Weblog Form (RSS 2.0)

Blog Navigation

April (2018)

(1 item)

August (2014)

(1 item)

July (2014)

(5 items)

April (2014)

(1 item)

March (2014)

(1 item)

January (2014)

(2 items)

November (2013)

(2 items)

July (2013)

(4 items)

April (2013)

(1 item)

February (2013)

(6 items)

September (2011)

(2 items)

November (2010)

(4 items)

September (2010)

(1 item)

August (2010)

(4 items)

July (2010)

(2 items)

September (2009)

(1 item)

June (2009)

(1 item)

April (2009)

(1 item)

November (2008)

(1 item)

October (2008)

(1 item)

September (2008)

(1 item)

July (2008)

(1 item)

June (2008)

(1 item)

May (2008)

(2 items)

April (2008)

(2 items)

March (2008)

(5 items)

January (2008)

(3 items)

December (2007)

(1 item)

November (2007)

(1 item)

October (2007)

(1 item)

September (2007)

(3 items)

August (2007)

(1 item)

July (2007)

(1 item)

June (2007)

(2 items)

May (2007)

(8 items)

April (2007)

(2 items)

March (2007)

(7 items)

February (2007)

(2 items)

January (2007)

(2 items)

November (2006)

(1 item)

October (2006)

(2 items)

September (2006)

(1 item)

June (2006)

(2 items)

May (2006)

(4 items)

April (2006)

(1 item)

March (2006)

(5 items)

January (2006)

(1 item)

December (2005)

(3 items)

November (2005)

(2 items)

October (2005)

(2 items)

September (2005)

(8 items)

August (2005)

(7 items)

June (2005)

(3 items)

May (2005)

(7 items)

April (2005)

(6 items)

March (2005)

(1 item)

February (2005)

(2 items)

January (2005)

(5 items)

December (2004)

(5 items)

November (2004)

(7 items)

October (2004)

(3 items)

September (2004)

(7 items)

August (2004)

(16 items)

July (2004)

(10 items)

June (2004)

(27 items)

May (2004)

(15 items)

April (2004)

(15 items)

March (2004)

(13 items)

February (2004)

(16 items)

January (2004)

(15 items)

Blog Home

RSS 2.0

Writing

Programming C# 5.0

Programming WPF

Other Sites

Interact Software

Debug Builds from the Command Line with Longhorn 4074

Tuesday 1 June, 2004, 04:32 PM

There is no supported way of using Visual Studio .NET to build programs for the WinHEC build (4074) of Longhorn. There are a few hacks suggested out on the Internet showing how to cajole an extant version of Whidbey/VS.NET 2005 into running on build 4074, but since the .NET Framework versions don't match, it seems like a bit of a fragile thing to do. So I'm sticking with the command line for now, using my editor of choice: COPY CON.

Fortunately, msbuild is quite happy to read .csproj files, so being VS.NET-deprived is merely a major inconvenience, rather than a showstopper.

One thing that wasn't immediately obvious to me was how to do debug builds - if you just run msbuild with no parameters it'll produce a release build. And unlike previous SDKs for Windows, there isn't a separate Debug and Release/Retail command prompt. (The SDK and DDK have usually given you two shortcuts, each launching command prompt windows set up to build applications, one configured to produce a debug build, the other a release build.)

I'm sure this is written somewhere really obvious in the documentation, but I didn't see it for one reason or another. So if, like me, you were wondering how to do this, and unlike me, have come across this blog entry (which obviously wasn't here until I wrote this...) here's the trick for one-off builds:

msbuild /property:Config=Debug

Of course it soon gets old typing that every time. Fortunately, the build files will happily read the chosen configuration out of the environment. So all you really need to do is the rather obvious:

set CONFIG=Debug

just once, and then you can do the usual:

msbuild

thereafter.

Copyright © 2002-2024, Interact Software Ltd. Content by Ian Griffiths. Please direct all Web site inquiries to webmaster@interact-sw.co.uk