Closed mirceamuresanse closed 1 year ago
You can easily circumvent this problem by wrapping the using and .ConfigureJailbreakDetection
block into #if !WINDOWS
#endif
preprocessor blocks.
You can easily circumvent this problem by wrapping the using and
.ConfigureJailbreakDetection
block into#if !WINDOWS
#endif
preprocessor blocks.
Thanks for the answer on this problem. This is the solution.
I created a new Maui app using VS 2022 and .NET 7. I added the NuGet package 'banditoth.MAUI.JailbreakDetector' and followed the steps from the readme.txt file. When building the app I get 2 errors:
Error 1: The type or namespace name 'banditoth' could not be found (are you missing a using directive or an assembly reference?)
Error 2: 'MauiAppBuilder' does not contain a definition for 'ConfigureJailbreakProtection' and no accessible extension method 'ConfigureJailbreakProtection' accepting a first argument of type 'MauiAppBuilder' could be found (are you missing a using directive or an assembly reference?)
I check in the project file and discovered that adding the NuGet package creates these 2 groups:
Nothing added for Windows. I tried adding one of these for Windows, but then I get a bunch of building errors stating that Windows is not supported.
At this point I'm stuck. Apparently this package can't be used, no matter if I select Windows, Android or iOS.