hallatore / Netling

Netling is a load tester client for easy web testing.
MIT License
1.34k stars 209 forks source link

Need to add AllowUnsafeBlocks=true on Netling.Core for it to compile on xbuild #22

Closed stanislavromanov closed 6 years ago

stanislavromanov commented 8 years ago

Currently xbuild cannot compile the console version for it to run on mac or linux becasue it depends on Core which is doing some unsafe byte operations. We need to add the code below to .csproj file in Core library to fix this.

Error

Utils/ByteHelpers.cs(8,23): error CS0227: Unsafe code requires the `unsafe' command line option to be specified

Fix

Add line below in .csproj file of Code sub-project.

<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
hallatore commented 8 years ago

Can you make a pull request for this?

stanislavromanov commented 8 years ago

Yeah, OK.