peachpiecompiler / peachpie

PeachPie - the PHP compiler and runtime for .NET and .NET Core
https://www.peachpie.io
Apache License 2.0
2.38k stars 203 forks source link

libMonoPosixHelper issue - not able to submit UWP app to Microsoft Store #961

Open ghost opened 3 years ago

ghost commented 3 years ago

When submitting my UWP app to the microsoft store i get the following error: File libMonoPosixHelper.dll has failed the DBCheck check. And some error messages like this: API EnumProcessModules in psapi.dll is not supported for this application type. libMonoPosixHelper.dll calls this API. API __dllonexit in msvcrt.dll is not supported for this application type. libMonoPosixHelper.dll calls this API. (and a bunch more)

The app seems to function perfectly without Mono.Posix being loaded properly so if it's possible to remove the reference to it from PeachPie.Library and move it to another package it would allow submitting UWP app to the Microsoft Store and solve this problem: https://github.com/peachpiecompiler/peachpie/issues/919

ghost commented 3 years ago

Adding PeachPie.Library to WPF/Xamarin.Forms project with .NET Framework as target framework fails because of Mono.Posix

"Failed to add reference. The package 'Mono.Posix.NETStandard' tried to add a framework reference to 'Mono.Posix' which was not found in the GAC. This is possibly a bug in the package. Please contact the package owners for assistance. Reference unavailable."

Solving this issue would allow using PeachPie with the WPF platform

jakubmisek commented 3 years ago

Thank you. This is the same issue e.g. as https://github.com/Azure/azure-storage-net-data-movement/issues/201 .

Basically you need to add a reference to Mono.Posix as well, which you can't .. We have to probably remote the use of Mono.Posix.NETStandard from Peachpie.