I'm trying to compile a program on the new DNX4.6 core, but it won't compile due to:
error CS0227: Unsafe code may only appear if compiling with /unsafe
This is my code:
[CompilerGenerated]
public unsafe class GrayscaleQuantizer : PaletteQuantizer
{
I've looked online, and I can't get any source with the same problem as I have. I can't tick the 'Allow Unsafe Code' at the Build tab of the Project Properties, because there is no option to do so...
Does anyone know a solution?
You need to set "allowUnsafe": true
in the build options in project.json.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With