.NET untuk peringatan Android XA0125
warning XA0125: 'AndroidApp1.pdb' is using a deprecated debug
information level. Set the debugging information to Portable in the
Visual Studio project property pages or edit the project file in a
text editor and set the 'DebugType' MSBuild property to 'portable' to
use the newer, cross-platform debug information level. If this file
comes from a NuGet package, update to a newer version of the NuGet
package or notify the library author.
Dukungan untuk file simbol .mdb atau .pdb yang dibangun dengan DebugType
properti MSBuild diatur ke full
atau pdbonly
sekarang tidak digunakan lagi. Ini berlaku untuk file .mdb dan .pdb dalam proyek aplikasi serta di pustaka yang direferensikan, termasuk paket NuGet.
Atur DebugType
ke portable
dalam proyek aplikasi serta semua referensi pustaka. portable
adalah pengaturan yang direkomendasikan untuk semua proyek mulai sekarang. Yang lebih full
lama dan pdbonly
pengaturan adalah untuk format file khusus Windows yang lebih lama. .NET 6 dan yang lebih tinggi tidak akan mendukung format yang lebih lama.
Di Visual Studio, buka Properti Bangun Tingkat Lanjut di halaman properti proyek dan ubah informasi Penelusuran Kesalahan menjadi Portabel.> >
Di Visual Studio untuk Mac, buka Buat > informasi Debug Kompilator > di halaman properti proyek dan ubah informasi Debug menjadi Portabel.
Jika file simbol bermasalah berasal dari paket NuGet, perbarui ke versi paket yang lebih baru atau beri tahu penulis pustaka.