oleg-st / ZstdSharp

Port of zstd compression library to c#
MIT License
200 stars 29 forks source link

Can't compile with .NET compile tool chain for UWP app #17

Closed johnnylee194 closed 9 months ago

johnnylee194 commented 1 year ago

I've had this issue when building an UWP app, in short:

So I'm opening this issue here to see whether this can be fixed

oleg-st commented 1 year ago

I can fix warnings "ILTransform : warning ILT0027: Invalid IL detected", but "error : Internal compiler error: Object reference not set to an instance of an object" still remains and I don't understand the reason for it.

johnnylee194 commented 1 year ago

Thanks for the response, I'll see whether I can get some help from MSDN and will get back to here for any positive feedback

oleg-st commented 1 year ago

Released 0.7.0 without these warning but it still does not compile with .NET Native

johnnylee194 commented 1 year ago

Gotcha, thanks

oleg-st commented 9 months ago

After applying some workarounds, I was able to compile ZstdSharp with .NET Native. Will release a new version in a while

oleg-st commented 9 months ago

@johnnylee194

I think it's fixed in 0.7.3

You may need <Use64BitCompiler>true</Use64BitCompiler> or <SingleThreadNUTC>true</SingleThreadNUTC> in the project file to avoid out of memory problems in compiler.

johnnylee194 commented 9 months ago

Gotcha. Thanks for the fix.

On Thu, Oct 19, 2023, 12:17 AM Oleg Stepanischev @.***> wrote:

@johnnylee194 https://github.com/johnnylee194

I think it's fixed in 0.7.3

You may need true or

true

in the project file to avoid out of memory problems in compiler.

— Reply to this email directly, view it on GitHub https://github.com/oleg-st/ZstdSharp/issues/17#issuecomment-1768885452, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAAKW23WPH6X7QOI3KWWIVDX776LJAVCNFSM6AAAAAAVODYRBWVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTONRYHA4DKNBVGI . You are receiving this because you were mentioned.Message ID: @.***>