irihitech/Semi.Avalonia

Web demo cannot be deployed

zdpcdt opened this issue · 1 comments

In Semi.Avalonia.Demo.Web, it can work through the dotnet run command, but it will cause error when I publish and deploy the demo.

Uncaught Error: AggregateException_ctor_DefaultMessage (No precompiled XAML found for avares://Semi.Avalonia/Locale/zh-cn.axaml (baseUri: ), make sure to specify x:Class and include your XAML file as AvaloniaResource)

image

If I use this StyleInclude in App.axaml:

<StyleInclude Source="avares://Semi.Avalonia/Themes/Index.axaml"

It will cause another similar error:

Uncaught Error: AggregateException_ctor_DefaultMessage (No precompiled XAML found for avares://Semi.Avalonia/Themes/Light/_index.axaml (baseUri: avares://Semi.Avalonia/Themes/Index.axaml), make sure to specify x:Class and include your XAML file as AvaloniaResource)

image