I am using some unsafe code in my .NET Core app. For that, I had made this change in the project.json file:
Change compilationOptions to buildOptions:
compilationOptions
buildOptions
"buildOptions": { "allowUnsafe": true }