зеркало из https://github.com/DeGsoft/maui-linux.git
8b93ece95a
Currently, on the first build of a "Hello World" Xamarin.Forms app, you will see this in the build log: ConvertDebuggingFiles Parameters Files C:\Users\myuser\.nuget\packages\xamarin.forms\3.1.0.697729\lib\MonoAndroid10\FormsViewGroup.pdb C:\Users\myuser\.nuget\packages\xamarin.forms\3.1.0.697729\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.pdb OutputItems _ConvertedDebuggingFiles C:\Users\myuser\.nuget\packages\xamarin.forms\3.1.0.697729\lib\MonoAndroid10\FormsViewGroup.dll C:\Users\myuser\.nuget\packages\xamarin.forms\3.1.0.697729\lib\MonoAndroid10\Xamarin.Forms.Platform.Android.dll The logging is a little weird here, but this `ConvertDebuggingFiles` MSBuild task takes about 100ms on my machine. What is it doing? The Mono debugger can support two types of debugging files: - `mdb` files - "portable" `pdb` files If Xamarin.Android's build finds a "non-portable" `pdb` file, we have to run it through this task to convert to an `mdb` file... This gives us proper stacktraces for `FormsViewGroup.dll` and `Xamarin.Forms.Platform.Android.dll`. You can change the type of debugging symbols in your project with the `DebugType` setting, which has these options: - Blank or `None`: don't generate symbols. (Although Xamarin.Android has funny behavior here, see: https://github.com/xamarin/xamarin-android/issues/2282) - `Full` generates an `mdb` file, this is a Windows-proprietary format for debug builds - `PdbOnly` generates a "non-portable" `pdb` file, a Windows-proprietary format for release builds - `Portable` generates a "portable" pdb file, which is the new standard that works for debug and release builds. New SDK-style MSBuild projects use this option by default. These values are not case sensitive, I have mostly seen them lower case in newer projects. So what does Xamarin.Forms need to do? Use `<DebugType>portable</DebugType>` in any Android class library or app project. Other platforms, this is optional, not as much benefit. I have heard that `DebugType=portable` might cause a problem on UWP. * Xamarin.Forms will ship "portable" `pdbs` in its NuGet package for `FormsViewGroup.dll` and `Xamarin.Forms.*.Android.dll`. Developers won't pay the 100ms on initial build. * Initial build times for `Xamarin.Forms.sln` will be slightly better for development, although I didn't measure the difference here. |
||
---|---|---|
.. | ||
Jars | ||
Properties | ||
Transforms | ||
Xamarin.Forms.Platform.Android.FormsViewGroup.csproj |