Unsafe code compilation error in .NET Core even after setting allowunsafe flag to true in project.json
In the newer *.csproj
files, this is now:
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
in any PropertyGroup
.
Change compilationOptions
to buildOptions
:
"buildOptions": {
"allowUnsafe": true
}