Customers have alerted us that the MDBg sample is broken on post-beta 2 builds. Rick Byers has diagnosed the problem as an issue in the mdbg build and we're working to update it. I guess there was a VS change that exposed this problem. Rick may blog a more detailed explanation, but I just wanted to get a quick post out to let people know we're aware of this and it's being addressed.

It fails with an error like this:

Error 1 The type or namespace name 'NativeApi' does not exist in the namespace 'Microsoft.Samples.Debugging.CorDebug' (are you missing an assembly reference?) C:\Documents and Settings\Administrator\Desktop\Whidbey Stuff\mdbg\mdbg\corapi\AppDomainEnumerator.cs 8 44 corapi

In the meantime, Rick's suggested fix is:

To fix this, you need to add “call ” to the beginning of the post-build event for corapi2.  I.e., the post-build event should be:

call "$(DevEnvDir)\..\tools\vsvars32.bat" > NUL && cd "$(ProjectDir)" && ilasm /KEY=../mdbg.snk /DLL /DEBUG /OUT="$(TargetDir)\corapi2.dll" context.il cordblib.il corpublib.il cormetalib.il assemblyDef.il> NUL

[update]: Rick has posted in more detail with a fix here.
I'll post again when we update the sample with the fix.