Closed NeilMacMullen closed 4 months ago
Disabling "Trim unused code" enables the publish operation to succeed (probably not very surprising given the error is with the trimmer!)
@vitek-karas can we guess which intrinsic is missing or do we need a repro?
This looks identical to https://github.com/dotnet/linker/issues/3072 Which has a pending 7.0 fix in https://github.com/dotnet/linker/pull/3109
Does the app use a library which is build for netstandard1.6
(or basically anything older than netstandard2.0
?
If it's the same problem, then a workaround is to rebuild such library to netstandard2.0
- and it should work.
Does the app use a library which is build for netstandard1.6 (or basically anything older than netstandard2.0?
No. All libraries are targetting "netstandard2.0" or "net6.0"
Hmm - that would point this to NOT be the same issue as I mention above (or it's unlikely).
Can you try the process described here: https://github.com/dotnet/linker/issues/3160 That will let you run the latest trimmer - to see if we have this fixed in main.
Would it be possible to get a repro project?
Would it be possible to get a repro project? Unfortunately it's a fairly complicated proprietary project so unlikely I can cut it down to a repro case. I'll try out the suggested process and let you know results but may take a few days...
For the record, I had the same issue in my very large avalonia android app. It uses many nuget packages so I haven't yet combed through all of them and their dependencies to see which version of .net standard they use.
Doing the process in #3106 seemed to fix my issue.
See attached build log for full details build_log.txt
Relevant portion appears to be this....
Dotnet info...