SecRandom.PluginSdk
3.0.0-alpha.2
dotnet add package SecRandom.PluginSdk --version 3.0.0-alpha.2
NuGet\Install-Package SecRandom.PluginSdk -Version 3.0.0-alpha.2
<PackageReference Include="SecRandom.PluginSdk" Version="3.0.0-alpha.2" />
<PackageVersion Include="SecRandom.PluginSdk" Version="3.0.0-alpha.2" />
<PackageReference Include="SecRandom.PluginSdk" />
paket add SecRandom.PluginSdk --version 3.0.0-alpha.2
#r "nuget: SecRandom.PluginSdk, 3.0.0-alpha.2"
#:package SecRandom.PluginSdk@3.0.0-alpha.2
#addin nuget:?package=SecRandom.PluginSdk&version=3.0.0-alpha.2&prerelease
#tool nuget:?package=SecRandom.PluginSdk&version=3.0.0-alpha.2&prerelease
SecRandom Plugin SDK
SDK for developing in-process SecRandom plugins. Plugins reference SecRandom.Core through this SDK and register services, settings pages, main pages, or other Core extensions from their entry point.
API version
manifest.ymlapiVersiondeclares which host API the plugin targets.- The host rejects plugins whose
apiVersionmajor is belowPluginApiVersions.Current.Major(currently3). apiVersionfollows the application major version and must be bumped with it.versioninmanifest.ymlis the plugin's own version and is independent ofapiVersion.
Example manifest:
id: secrandom.example
name: SecRandom 示例插件
entranceAssembly: SecRandom.ExamplePlugin.dll
apiVersion: 3.0.0
version: 1.0.0
author: SECTL
Referencing the SDK
Published plugins reference the SDK package and exclude its runtime assets so the host supplies Core and its dependencies:
<PackageReference Include="SecRandom.PluginSdk" Version="3.0.0">
<ExcludeAssets>runtime;native</ExcludeAssets>
</PackageReference>
The repository template defaults UseLocalPluginSdk=true so solution builds work before the SDK is published; set UseLocalPluginSdk=false with a NuGet source that contains SecRandom.PluginSdk to exercise the release packaging path.
Building a plugin package
Set <CreateSrpx>true</CreateSrpx> to produce srpx/<ProjectName>.srpx after every build. The package is a ZIP whose root contains manifest.yml, the entrance assembly, and any external package dependencies. Place it in data/cache/plugin-packages and restart the desktop application to install.
| Product | Versions Compatible and additional computed target framework versions. |
|---|---|
| .NET | net10.0 is compatible. net10.0-android was computed. net10.0-browser was computed. net10.0-ios was computed. net10.0-maccatalyst was computed. net10.0-macos was computed. net10.0-tvos was computed. net10.0-windows was computed. |
-
net10.0
- SecRandom.Core (>= 3.0.0-alpha.2)
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 |
|---|---|---|
| 3.0.0-alpha.2 | 67 | 8/16/2026 |