Visual Studio – Getting compilation error “The type 'XAML' is not defined.”

Fix a compilation error in the F# Empty Windows App WPF template by trusting the project's XAML Type Provider through the Visual Studio options.

During compilation of the F# Empty Windows App (WPF) I got that error (check the output pane carefully).

image
image

To solve this issue you have to thrust of the XAML Type Provider of this project. This you can do via the Visual Studio options:

image
image