irihitech / Semi.Avalonia

Avalonia theme inspired by Semi Design
https://irihitech.github.io/Semi.Avalonia/
MIT License
670 stars 41 forks source link

Web demo cannot be deployed #372

Open zdpcdt opened 2 days ago

zdpcdt commented 2 days ago

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

zdpcdt commented 2 days ago

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