Skip to content

Instantly share code, notes, and snippets.

@hellboy81
Created January 16, 2014 12:17

Revisions

  1. hellboy81 created this gist Jan 16, 2014.
    15 changes: 15 additions & 0 deletions gistfile1.cs
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,15 @@
    // Pre-conditions: fileName: \\Program Files\\MyAppName\\myapp_log.txt
    // This File name
    // Debuggging in Visual Studio 2008 with ActiveSync
    // Log file myapp_log.txt is opened on PC with Windows Explorer
    // Windows 7 machine

    // An error message is available for this exception but cannot be displayed because these messages
    // are optional and are not currently installed on this device.
    // Please install ‘NETCFv35.Messages.EN.wm.cab’ for Windows Mobile 5.0 and above or
    // ‘NETCFv35.Messages.EN.cab’ for other platforms. Restart the application to see the message.

    Trace2.Listeners.Add(new TextWriterTraceListener(fileName));