microsoft / appcenter-sdk-dotnet

Development repository for the App Center SDK for .NET platforms, including Xamarin
Other
310 stars 141 forks source link

Building .NET 8 WPF app produces warning NETSDK1206 #1763

Closed jizc closed 1 year ago

jizc commented 1 year ago

Description

When building a .NET 8 WPF app with App Center v5.0.3 a warning is produced:

C:\Program Files\dotnet\sdk\8.0.100\Sdks\Microsoft.NET.Sdk\targets\Microsoft.NET.Sdk.targets(284,5): warning NETSDK1206: Found version-specific or distribution-specific runtime identifier(s): alpine-arm, alpine-arm64, alpine-x64. Affected libraries: SQLitePCLRaw.lib.e_sqlite3. In .NET 8.0 and higher, assets for version-specific and distribution-specific runtime identifiers will not be found by default. See https://aka.ms/dotnet/rid-usage for details.

This issue has been fixed in SQLitePCL.raw v2.1.6. Manually adding SQLitePCLRaw.bundle_green v2.1.6 to test project fixes the issue.

Repro Steps

  1. Create a .NET 8 WPF app
  2. Add Microsoft.AppCenter.Crashes v5.0.3 NuGet package
  3. Build app and check build log

Details

  1. What is your app platform (Xamarin.Android or Xamarin.iOS or UWP)?
    • WPF
  2. If using Xamarin.Forms or if using portable/shared code to call our SDK APIs, are you using shared project, PCL code or .NET standard code for the application? Which .NET standard version or which PCL profile?
    • N/A
  3. Which SDK version are you using?
    • 5.0.3
  4. Which OS version did you experience the issue on?
    • Windows 11
  5. What device version did you see this error on? Were you using an emulator or a physical device?
    • N/A
  6. What third party libraries are you using?
    • None
  7. Please enable verbose logging for your app using AppCenter.LogLevel = LogLevel.Verbose before your call to AppCenter.Start(...) and include the logs here:
    • N/A
jizc commented 1 year ago

Fixed by #1765