We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
Applies to PCL N Plugin SDK 0.2.4.
SDK 0.2.4
0.2.4
插件 ID 必须匹配:
^[a-z0-9]+([.-][a-z0-9]+)*$
推荐反向域名:
dev.example.tools
com.example.launch-helper
io.github.username.backup
禁止大写、空格、下划线、连续分隔符,以及以 ./- 开头或结尾。
.
-
pcl.*、official.*、system.*、internal.* 为保留命名空间。插件中心会校验插件 ID 是否位于发布者拥有的 namespace 下。
pcl.*
official.*
system.*
internal.*
ID 一旦发布就不要更改。改 ID 会被视为全新插件,用户设置、依赖和更新关系不会自动迁移。
<PclNPluginId>dev.example.tools</PclNPluginId> <Version>1.2.3</Version>
"id": "dev.example.tools", "version": "1.2.3"
构建输出会使用相同身份:
dev.example.tools-1.2.3.pnp
插件使用 SemVer 2.0:MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]。
MAJOR.MINOR.PATCH[-PRERELEASE][+BUILD]
1.0.0
1.1.0
1.1.1
2.0.0
2.0.0-beta.1
1.2.3+build.42
PluginVersion.CompareTo 按 SemVer 优先级比较;build metadata 不改变排序。
PluginVersion.CompareTo
插件版本、SDK NuGet 版本、Host API 版本和服务版本彼此独立:
1.2.3-beta.1
0.1.0
0.2
major.minor
0.1
3.1
不要把 SDK 0.2.4 写进 api.minimum 或服务范围。
api.minimum