Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Closed
johnnylee194 opened this issue Mar 3, 2023 · 7 comments
Closed

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

johnnylee194 opened this issue Mar 3, 2023 · 7 comments

Comments

@johnnylee194
Copy link

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

  • I have this UWP app to use MongoDB C# Driver
  • Building error comes from MongoDB C# Driver
  • Dmitry Lukyanov from MongoDB C# Driver project told me this error comes from zstd compression impl

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

@oleg-st
Copy link
Owner

oleg-st commented Mar 3, 2023

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
Copy link
Author

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
Copy link
Owner

oleg-st commented Mar 6, 2023

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

@johnnylee194
Copy link
Author

Gotcha, thanks

kurema referenced this issue in kurema/BookViewerApp3 Sep 23, 2023
@oleg-st
Copy link
Owner

oleg-st commented Oct 18, 2023

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

@oleg-st
Copy link
Owner

oleg-st commented Oct 18, 2023

@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.

@oleg-st oleg-st closed this as completed Oct 19, 2023
@johnnylee194
Copy link
Author

johnnylee194 commented Oct 20, 2023 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants