Right click on the project in the Solution Explorer, choose properties>Configuration Properties>Bilud>Allow Unsafe Code Blocks=True