ULS requires "Allow Unsafe Code" checkbox usage

Jun 30, 2008 at 7:37 PM
This is minor, but in order to use the ULS logger that is part of the Diagnostics section of this project in, for example, a custom SharePoint workflow project such as the one I'm testing it with (via copy/paste of the code), you need to remember to check the Allow Unsafe Code in the Project properties, Build tab, in the General section, just below Platform target:, because of the presence of code such as the following:

internal unsafe delegate uint EtwProc(.......)

Like I said, it's only minor and most developers will figure it out, but I figured I'd jump in and offer it more as a courtesy to newbies, if nothing else.
Coordinator
Jul 3, 2008 at 1:41 PM
Thanks for the input,

Indeed, i had to check this allow Unsafe Code in the SharePointOfView Project.

As our project, is nothing more than a bunch a code you can copy-paste, newbies could eventually get to this warning, you did well :)

Regards,