Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Like this?

http://benchmarksgame.alioth.debian.org/u64q/program.php?tes...

How should /unsafe be set with .Net CORE csproj ?



I only knew the command line option which no longer worked. Once I found the project.json

    "buildOptions": {
        "allowUnsafe": true
    }
I was able to fake something for dotnet migrate and find the needed setting:

    <Project Sdk="Microsoft.NET.Sdk">
        <PropertyGroup>
            <AllowUnsafeBlocks>true</AllowUnsafeBlocks>
        </PropertyGroup>
    </Project>




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: