mirror of
https://github.com/adamhathcock/sharpcompress.git
synced 2026-02-03 21:23:38 +00:00
[PR #716] [MERGED] replace Activator.CreateInstance to Func for avoiding error in NativeAOT #1176
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/adamhathcock/sharpcompress/pull/716
Author: @itn3000
Created: 12/21/2022
Status: ✅ Merged
Merged: 12/21/2022
Merged by: @adamhathcock
Base:
master← Head:fix-reflection-aot-error📝 Commits (3)
a7a5c41replace Activator.CreateInstance to Func for avoiding error in NativeAOT61bfbdbfix compilation error7842168remove redundant cast📊 Changes
1 file changed (+10 additions, -10 deletions)
View changed files
📝
src/SharpCompress/Compressors/Xz/Filters/BlockFilter.cs(+10 -10)📄 Description
Overview
This fixes
System.MissingMethodExceptionwhen using XZ decompressor in NativeAOT.Steps of reproduce
Repro code
Expected
"test.txt" is created and written decompressed result
Actual
System.MissingMethodException is thrown.
Workaround
Currently, this can be avoided by adding class under
SharpCompress.Compressors.Xz.Filtersin rd.xml.here is example of rd.xml
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.