MAUI Project can not import web-components script automatically · Issue #404 · microsoft/fluentui-blazor (original) (raw)

I created a MAUI-Blazor project with VS 2022.
and installed Microsoft.Fast.Components.FluentUI 2.3.2
image

Add @using Microsoft.Fast.Components.FluentUI in _Imports.razor.
image

Add tag in index.html
image

Followed documents modified Promgram.cs
image

Add sample code in index.razor

<FluentCard Style="padding: 1.5rem; width: 400px; height: 250px; ">
  <h2>Hello World!</h2>
  <FluentButton Appearance="@Appearance.Accent">Click Me</FluentButton>
</FluentCard>

App can not work well.
image

If add web-component script in index.html.
image

it will work well.
image