VelaShell.PluginSdk.Build 1.0.0

dotnet add package VelaShell.PluginSdk.Build --version 1.0.0
                    
NuGet\Install-Package VelaShell.PluginSdk.Build -Version 1.0.0
                    
This command is intended to be used within the Package Manager Console in Visual Studio, as it uses the NuGet module's version of Install-Package.
<PackageReference Include="VelaShell.PluginSdk.Build" Version="1.0.0" />
                    
For projects that support PackageReference, copy this XML node into the project file to reference the package.
<PackageVersion Include="VelaShell.PluginSdk.Build" Version="1.0.0" />
                    
Directory.Packages.props
<PackageReference Include="VelaShell.PluginSdk.Build" />
                    
Project file
For projects that support Central Package Management (CPM), copy this XML node into the solution Directory.Packages.props file to version the package.
paket add VelaShell.PluginSdk.Build --version 1.0.0
                    
#r "nuget: VelaShell.PluginSdk.Build, 1.0.0"
                    
#r directive can be used in F# Interactive and Polyglot Notebooks. Copy this into the interactive tool or source code of the script to reference the package.
#:package VelaShell.PluginSdk.Build@1.0.0
                    
#:package directive can be used in C# file-based apps starting in .NET 10 preview 4. Copy this into a .cs file before any lines of code to reference the package.
#addin nuget:?package=VelaShell.PluginSdk.Build&version=1.0.0
                    
Install as a Cake Addin
#tool nuget:?package=VelaShell.PluginSdk.Build&version=1.0.0
                    
Install as a Cake Tool

VelaShell.PluginSdk.Build

VelaShell 插件工程唯一需要引用的包。引一个,下面这些全都到位:

<PackageReference Include="VelaShell.PluginSdk.Build" Version="1.0.0-preview.1" />
它做了什么 为什么
传递引入 VelaShell.PluginSdk(契约)与 与宿主版本一致的 Avalonia,均为编译期引用 装载器强制插件与宿主共享这两类程序集;版本不一致会在用户机器上才炸
EnableDynamicLoading=trueplugin.json 进输出目录 插件是被动态装载的组件,ALC 靠 deps.json 解析自带依赖
共享程序集的运行时资产不落插件目录 放进去也不会被加载,只是撑大包体
Avalonia 版本冲突从警告升为错误(NU1608/NU1605) 版本漂移必须在构建期就红,而不是装机后才现形
构建后按宿主同一套规则校验 plugin.json 杜绝"本机构建过、宿主装不上"
dotnet build -t:PackVpx 一步出 .vpx 打包器随包分发,不必安装任何全局工具

出包

dotnet build -c Release -t:PackVpx
# → bin/vpx/<插件id>-<版本>.vpx

# 带签名(密钥用 `vela-plugin keygen` 生成,不要提交进仓库)
dotnet build -c Release -t:PackVpx -p:VelaSigningKey=/path/to/key.pem

可调属性

属性 默认 说明
VelaPluginManifest $(MSBuildProjectDirectory)\plugin.json 清单路径
VelaVpxOutputDirectory bin\vpx\ .vpx 产物目录
VelaSigningKey 打包时用的 PEM 私钥
VelaPackMask true 是否对载荷做掩码变换
VelaValidateManifestOnBuild true 构建后是否校验清单
VelaSkipAvaloniaVersionCheck false 跳过 Avalonia 版本一致性检查

完整开发指南:https://github.com/joesdu/VelaShell/blob/main/docs/plugins/dev-guide.md

There are no supported framework assets in this package.

Learn more about Target Frameworks and .NET Standard.

NuGet packages

This package is not used by any NuGet packages.

GitHub repositories

This package is not used by any popular GitHub repositories.

Version Downloads Last Updated
1.0.0 32 8/18/2026
1.0.0-preview.1 34 8/18/2026