avalonia csharp add tag
FoggyFinder
I've been trying to rewrite C# Avalonia App to F# but can't get rid of error.



```text/x-csharp
public static AppBuilder BuildAvaloniaApp()
    => AppBuilder.Configure<App>()
        .UsePlatformDetect()
        .UseManagedSystemDialogs()
        .LogToDebug();
```

My attempt

```
let buildAvaloniaApp () = 
    AppBuilder.Configure<App>()
              .UsePlatformDetect()
              .UseManagedSystemDialogs()
              .LogToDebug()
```

and here is error:

```
FS0041	A unique overload for method 'UseManagedSystemDialogs' could not be determined based on type information prior to this program point. A type annotation may be needed.
Candidates:
 - (extension) AppBuilder.UseManagedSystemDialogs<'TAppBuilder when 'TAppBuilder : (new : unit -> 'TAppBuilder) and 'TAppBuilder :> AppBuilderBase<'TAppBuilder>>() : 'TAppBuilder
 - (extension) AppBuilder.UseManagedSystemDialogs<'TAppBuilder,'TWindow when 'TAppBuilder : (new : unit -> 'TAppBuilder) and 'TAppBuilder :> AppBuilderBase<'TAppBuilder> and 'TWindow : (new : unit -> 'TWindow) and 'TWindow :> Window>() : 'TAppBuilder	
 ```

How annotate function/method properly to build project without errors?

This room is for discussion about this question.

Once logged in you can direct comments to any contributor here.

Enter question or answer id or url (and optionally further answer ids/urls from the same question) from

Separate each id/url with a space. No need to list your own answers; they will be imported automatically.