In VS.NET go to the project property page and in configuration properties>build set Allow Unsafe Code Blocks to True.


Taken from here.