Исходный код СУБД RuDB — свободной СУБД с открытым исходным кодом на базе PostgreSQL
rudb
2 days ago bd039d1e92813358c5c5a1e346b49074baf513f2
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
using Microsoft.Extensions.Logging;
 
namespace MauiModelTester;
 
public static class MauiProgram
{
    public static MauiApp CreateMauiApp()
    {
        var builder = MauiApp.CreateBuilder();
        builder.UseMauiApp<App>().ConfigureFonts(fonts =>
                                                 {
                                                     fonts.AddFont("OpenSans-Regular.ttf", "OpenSansRegular");
                                                     fonts.AddFont("OpenSans-Semibold.ttf", "OpenSansSemibold");
                                                 });
 
#if DEBUG
        // NOTE: Enabling this does allow Debug.WriteLine to work for debugging C# code.
        //       However it seems to kill native logging on Android using __android_log_print that ORT and
        //       onnxruntime-extensions use, at least in the emulator. Due to that, enabled if you want to debug C#
        //       code and disable to debug native code.
        //
        // Add the extension debug logger so Debug.WriteLine output shows up in the Output window when running in VS
        // builder.Logging.AddDebug();
        // System.Diagnostics.Debug.WriteLine("Debug output enabled.");
#endif
 
        return builder.Build();
    }
}