Skip to content

Commit 7e30437

Browse files
authored
Merge pull request #10 from VelaShellLabs/chore/avalonia-12.1.2
chore: 跟上 SDK 2.0.2 的 Avalonia 12.1.2 版本锁,本包发 2.0.2
2 parents 14eb157 + ef3f30e commit 7e30437

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎Directory.Build.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@
3131
3232
CI 发包时用 -p:VelaToolsVersion= 覆盖(取自 Release 标签)。
3333
-->
34-
<VelaToolsVersion Condition="'$(VelaToolsVersion)' == ''">1.5.0</VelaToolsVersion>
34+
<VelaToolsVersion Condition="'$(VelaToolsVersion)' == ''">2.0.2</VelaToolsVersion>
3535
<!-- 去掉预发布后缀的数字版(AssemblyVersion/FileVersion 不接受后缀)与主版本号。 -->
3636
<VelaToolsVersionCore>$([System.Text.RegularExpressions.Regex]::Replace($(VelaToolsVersion), '-.*$', ''))</VelaToolsVersionCore>
3737
<VelaToolsMajor>$([System.Text.RegularExpressions.Regex]::Replace($(VelaToolsVersionCore), '\..*$', ''))</VelaToolsMajor>

‎src/VelaShell.Plugin.Cli/VelaShell.Plugin.Cli.csproj‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
</PropertyGroup>
2020

2121
<ItemGroup>
22-
<PackageReference Include="VelaShell.PluginSdk" Version="2.0.0" />
22+
<PackageReference Include="VelaShell.PluginSdk" Version="2.0.2" />
2323
</ItemGroup>
2424

2525
<ItemGroup>

‎src/VelaShell.PluginSdk.Build/VelaShell.PluginSdk.Build.csproj‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
<!-- PrivateAssets="none" 不能省:NuGet 默认不让 build/analyzers 资产传递给下游,
2727
而 Avalonia 的 **AXAML 编译器就在它的 build 资产里** —— 少了这一条,
2828
插件工程里的 .axaml 根本不会被编译,现象是运行时找不到控件而不是构建报错。 -->
29-
<PackageReference Include="Avalonia" Version="[12.1.1]" ExcludeAssets="runtime" PrivateAssets="none" />
29+
<PackageReference Include="Avalonia" Version="[12.1.2]" ExcludeAssets="runtime" PrivateAssets="none" />
3030
<!-- 拆库(2026-08-27)之后契约 SDK 也走 NuGet(原先是 ProjectReference)。
3131
版本就写在下面这一行的字面量上,由 NuGet(或合掉 Dependabot 的 PR)直接更新
3232
—— **不要**把它抽成 MSBuild 属性:Version="$(...)" 会让 Dependabot 与
@@ -36,7 +36,7 @@
3636
来自两份不同程序集。Dependabot 会把两处一起抬,手工改时别落下另一处。
3737
这一条同时是下面 VerifyAvaloniaVersionPin 的**信息来源**:SDK 包的
3838
buildTransitive props 会把权威 Avalonia 版本导出成 $(VelaSdkPinnedAvaloniaVersion)。 -->
39-
<PackageReference Include="VelaShell.PluginSdk" Version="2.0.0" ExcludeAssets="runtime" PrivateAssets="none">
39+
<PackageReference Include="VelaShell.PluginSdk" Version="2.0.2" ExcludeAssets="runtime" PrivateAssets="none">
4040
<IncludeAssets>compile; build; native; contentfiles; analyzers; buildtransitive</IncludeAssets>
4141
</PackageReference>
4242
<!-- 打包器(vela-plugin)随本包分发到 tools/:插件工程无需安装任何全局工具即可出包。

‎src/VelaShell.PluginSdk.Build/build/VelaShell.PluginSdk.Build.props‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@
2020

2121
<!-- 宿主的 Avalonia 版本。本包以精确区间锁死它;这里再留一份供 targets 核对
2222
(作者若直接引用了别的版本,NuGet 只给 NU1608 警告,下面把它升成错误)。 -->
23-
<VelaAvaloniaVersion Condition="'$(VelaAvaloniaVersion)' == ''">12.1.1</VelaAvaloniaVersion>
23+
<VelaAvaloniaVersion Condition="'$(VelaAvaloniaVersion)' == ''">12.1.2</VelaAvaloniaVersion>
2424

2525
<!-- 版本冲突不许只是警告:插件与宿主的 Avalonia 版本不一致会在用户机器上才炸,
2626
而那时的现象(控件类型转换失败)离根因非常远。 -->

0 commit comments

Comments
 (0)