Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions en/templates/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -362,9 +362,9 @@ Plugins use **full Avalonia** to design their own UI: choose compile-time AXAML
**The only hard constraint: the Avalonia version must match the host.** Avalonia-related packages must be compile-only:

```xml
<!-- csproj: version = host version (currently 12.1.2); Avalonia DLLs are never copied into the plugin directory,
<!-- csproj: version = host version (currently 12.1.3); Avalonia DLLs are never copied into the plugin directory,
and the loader shares the same set at runtime (in-process = the host's; isolated process = bundled with PluginHost). -->
<PackageReference Include="Avalonia" Version="12.1.2" ExcludeAssets="runtime" />
<PackageReference Include="Avalonia" Version="12.1.3" ExcludeAssets="runtime" />
```

Third-party packages based on Avalonia, such as control libraries, should be referenced normally (their DLLs must be distributed with the plugin; only the `Avalonia*` assemblies themselves are forcibly shared by the loader).
Expand Down
2 changes: 1 addition & 1 deletion zh/sdk/release-process.md
Original file line number Diff line number Diff line change
Expand Up @@ -143,7 +143,7 @@
`src/Directory.Packages.props` 做的。拆库之后读不到对方的文件了,于是反过来:

```
Directory.Build.props: <VelaAvaloniaVersion>12.1.2</VelaAvaloniaVersion>
Directory.Build.props: <VelaAvaloniaVersion>12.1.3</VelaAvaloniaVersion>
↓ 打包时写进 buildTransitive/VelaShell.PluginSdk.props
$(VelaSdkPinnedAvaloniaVersion)
↓ 引用 VelaShell.PluginSdk 的工程都吃得到
Expand Down
4 changes: 2 additions & 2 deletions zh/templates/dev-guide.md
Original file line number Diff line number Diff line change
Expand Up @@ -534,9 +534,9 @@ context.Events.LocaleChanged += locale => ...;
**唯一硬约束:Avalonia 版本与宿主一致。** Avalonia 相关包必须 compile-only:

```xml
<!-- csproj:版本 = 宿主版本(当前 12.1.2);Avalonia dll 绝不复制进插件目录,
<!-- csproj:版本 = 宿主版本(当前 12.1.3);Avalonia dll 绝不复制进插件目录,
运行时由装载方共享同一套(进程内 = 宿主的;隔离进程 = PluginHost 自带的)。 -->
<PackageReference Include="Avalonia" Version="12.1.2" ExcludeAssets="runtime" />
<PackageReference Include="Avalonia" Version="12.1.3" ExcludeAssets="runtime" />
```

基于 Avalonia 的第三方组件包(如控件库)则**正常引用**(它们的 dll 要随插件
Expand Down