Merge pull request #316 from irihitech/rc/271-rd-file

Add rd file explanation for native aot.
This commit is contained in:
Dong Bin 2024-03-21 10:54:57 +08:00 committed by GitHub
commit 91aa717189
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 63 additions and 3 deletions

View File

@ -29,7 +29,7 @@ Include Semi Design Styles in application:
That's all. That's all.
ColorPicker, DataGrid and TreeDataGrid are distributed in separated packages. Please install if you need. ColorPicker, DataGrid and TreeDataGrid are distributed in separated packages. Please install if you need.
```bash ```bash
dotnet add package Semi.Avalonia.ColorPicker --version 11.0.7 dotnet add package Semi.Avalonia.ColorPicker --version 11.0.7
@ -45,6 +45,36 @@ dotnet add package Semi.Avalonia.TreeDataGrid --version 11.0.7
</Application.Styles> </Application.Styles>
``` ```
If AOT publishing is required, you need to include the rd.xml file in your project:
```xml
<ItemGroup>
<RdXmlFile Include="rd.xml"/>
</ItemGroup>
```
The contents of the rd.xml file should be as follows:
```xml
<?xml version="1.0" encoding="utf-8"?>
<Directives>
<!--
This file is part of RdXmlLibrary project.
Visit https://github.com/kant2002/rdxmllibrary for latest version.
If you have modifications specific to this Nuget package,
please contribute back.
-->
<Application>
<Assembly Name="Avalonia.Markup.Xaml" Dynamic="Required All"/>
<Assembly Name="Semi.Avalonia" Dynamic="Required All"/>
<!-- If you don't use these, please don't include them.
<Assembly Name="Semi.Avalonia.DataGrid" Dynamic="Required All"/>
<Assembly Name="Semi.Avalonia.ColorPicker" Dynamic="Required All"/>
-->
</Application>
</Directives>
```
## Demo ## Demo
You can always download demo executable to play around with Semi Avalonia Themes. You can always download demo executable to play around with Semi Avalonia Themes.
@ -54,7 +84,7 @@ You can always download demo executable to play around with Semi Avalonia Themes
| Semi Design Version | Avalonia Version | | Semi Design Version | Avalonia Version |
|:--------------------|:-----------------| |:--------------------|:-----------------|
| 11.0.7 | 11.0.7 | | 11.0.7 | >=11.0.7 |
| 11.0.1 | <=11.0.6 | | 11.0.1 | <=11.0.6 |
## TODO ## TODO

View File

@ -45,6 +45,36 @@ dotnet add package Semi.Avalonia.TreeDataGrid --version 11.0.7
</Application.Styles> </Application.Styles>
``` ```
如果需要进行 AOT 发布,则需要在项目中包含 rd.xml 文件:
```xml
<ItemGroup>
<RdXmlFile Include="rd.xml"/>
</ItemGroup>
```
rd.xml 文件的内容如下:
```xml
<?xml version="1.0" encoding="utf-8"?>
<Directives>
<!--
This file is part of RdXmlLibrary project.
Visit https://github.com/kant2002/rdxmllibrary for latest version.
If you have modifications specific to this Nuget package,
please contribute back.
-->
<Application>
<Assembly Name="Avalonia.Markup.Xaml" Dynamic="Required All"/>
<Assembly Name="Semi.Avalonia" Dynamic="Required All"/>
<!-- If you don't use these, please don't include them.
<Assembly Name="Semi.Avalonia.DataGrid" Dynamic="Required All"/>
<Assembly Name="Semi.Avalonia.ColorPicker" Dynamic="Required All"/>
-->
</Application>
</Directives>
```
## 示例 ## 示例
您可以从 Semi Avalonia 的 release 页下载并试用 Semi Avalonia 的展示应用。 您可以从 Semi Avalonia 的 release 页下载并试用 Semi Avalonia 的展示应用。
@ -55,7 +85,7 @@ dotnet add package Semi.Avalonia.TreeDataGrid --version 11.0.7
| Semi Design Version | Avalonia Version | | Semi Design Version | Avalonia Version |
|:--------------------|:-----------------| |:--------------------|:-----------------|
| 11.0.7 | >=11.0.7 | | 11.0.7 | >=11.0.7 |
| 11.0.1 | <=11.0.6 | | 11.0.1 | <=11.0.6 |
## 代办事项 ## 代办事项