Xamarin应用指纹登录插件编译报错及解决方案合理性咨询
Hey there! Let's break down your situation and address your concerns clearly:
Absolutely. Moving from PCLs (Portable Class Libraries) to .NET Standard is the official recommended path for Xamarin projects these days—PCL has been deprecated for years, and .NET Standard offers better cross-platform compatibility and future-proofing.
Since Plugin.Fingerprint v1.4.5.0 supports .NET Standard, your successful compilation confirms that this version plays nicely with netstandard1.1. The main thing to watch out for is your other NuGet dependencies:
- Check if all your existing packages have versions that support netstandard1.1. Most modern Xamarin packages do, but if you have older, unmaintained packages, they might cause compatibility issues.
- If you run into errors with other packages, try upgrading them to their latest versions that target .NET Standard. This will align your project with modern tooling and reduce long-term maintenance headaches.
If you were to roll back to an older version of Plugin.Fingerprint that targets .NET Portable v4.5 Profile111, you'd face a few downsides:
- You'll miss out on bug fixes, performance improvements, and new features added in newer versions of the plugin (like better support for newer Android/iOS fingerprint APIs).
- Older plugin versions are unlikely to receive ongoing updates, so if you run into platform-specific issues later, you won't get official fixes.
- PCLs are no longer supported by Microsoft, so sticking with this path will make it harder to migrate to newer Xamarin (or .NET MAUI) tooling down the line.
If you're hesitant about the .NET Standard migration, here are a couple of other options:
- Upgrade your PCL profile: Instead of switching to .NET Standard, try upgrading your PCL to a higher-profile version like Profile259 (which targets .NETPortable v4.6). This profile is compatible with .NETPortable v5.0, so it should resolve the original compilation error with Plugin.Fingerprint v1.4.5.0. Note that this is a temporary fix though—PCL is still deprecated.
- Switch to Xamarin.Essentials: Microsoft's official Xamarin.Essentials library includes a built-in
FingerprintAPI that handles biometric authentication across iOS and Android. It's fully compatible with .NET Standard, well-maintained, and eliminates the need for a third-party plugin. This is often the most reliable long-term solution.
内容的提问来源于stack exchange,提问作者Neelam Prajapati

