Erik Ardvisson asks:

… [I]s there some way to be able to output debug text to the console? (I tried #define DEBUG and all that.) I ended up using a log file but that is a bit cumbersome.

We have a bug in our .Target files which cause the debug info to not get passed into CSC. We needed a quick workaround for the PDC build; we placed a hack into your myapp.xaml.cs file. To get console debugging working, do the following:

  1. Change Debug to DEBUG (all caps) in MyApp.xaml.cs
  2. Add using System.Diagnostics
  3. Call Debug.WriteLine("Hello!")
  4. See the output in the console

This shouldn’t be an issue if you’re using VB.

What if you’re not using MyApp.xaml.cs? Just make sure “#define DEBUG” is in one of your .cs files.

Trackbacks

close Reblog this comment
blog comments powered by Disqus