Skip to content

feat: 增加 MSBuild 打包包与 PackPlugin 目标 - #3

Merged
residua1 merged 2 commits into
mainfrom
feat/plugin-build-package
Oct 22, 2026
Merged

residua1 merged 2 commits into
mainfrom
feat/plugin-build-package

Conversation

@residua1

Copy link
Copy Markdown
Contributor

改动

  • 新增 Hosihikari.Plugin.Build 包,携带打包器与 PackPlugin MSBuild 目标。
  • 插件项目引用该包后运行 dotnet build -t:PackPlugin,默认把包写到 dist/<name>/。
  • 打包器新增 pack-plugin-from-assembly,从 TargetPath 取构建输出目录,避开 Windows 命令行收尾反斜杠转义。
  • CI 增加一次性插件项目的 PackPlugin 冒烟。

验证

  • 本地 bash tools/Build/smoke.sh 通过,产物含 DLL、deps 与 manifest,且不含共享契约。
  • 按约定等待 Codex review 通过后再合并。

@chatgpt-codex-connector

chatgpt-codex-connector Bot commented Oct 22, 2026 •

Copy link
Copy Markdown

Codex Review Summary

This comment shows the latest Codex review activity on this pull request.

Review Status Commit Review trigger
📝 Code Review ✅ Completed 2026-10-22T05:19:44.998290Z c61ff7e Manual request
ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review" or "@codex security review".

Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings.

@chatgpt-codex-connector chatgpt-codex-connector Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

💡 Codex Review

Here are some automated review suggestions for this pull request.

Reviewed commit: a4758c656a

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

Text="找不到 Hosihikari 打包器:$(HosihikariPackToolPath)" />
<MakeDir Directories="$(HosihikariPluginOutputRoot)" />
<!-- TargetPath 是文件路径;避开 TargetDir 收尾反斜杠对引号的转义。 -->
<Exec Command="dotnet &quot;$(HosihikariPackToolPath)&quot; pack-plugin-from-assembly &quot;$(TargetPath)&quot; &quot;$(HosihikariPluginManifest)&quot; &quot;$(HosihikariPluginOutputRoot)&quot;" />

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

P2 Badge Dispatch packing to a concrete target framework

When a plugin uses TargetFrameworks, PackPlugin runs in the outer cross-targeting project: Build dispatches the inner builds, but this Exec subsequently receives the outer $(TargetPath), which does not point to a specific bin/.../<tfm>/ assembly. The packer consequently uses an empty or incorrect source directory and cannot find the manifest's entry assembly. Dispatch the target to a selected inner build, or fail with an actionable requirement to invoke it with -f <framework>.

Useful? React with 👍 / 👎.

@residua1

Copy link
Copy Markdown
Contributor Author

@codex review

@chatgpt-codex-connector

Copy link
Copy Markdown

Codex Review: Didn't find any major issues. Another round soon, please!

Reviewed commit: c61ff7e2d9

ℹ️ About Codex in GitHub

Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you

  • Open a pull request for review
  • Mark a draft as ready
  • Comment "@codex review".

If Codex has suggestions, it will comment; otherwise it will react with 👍.

Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".

@residua1
residua1 merged commit d360692 into main Oct 22, 2026
1 check passed
@residua1
residua1 deleted the feat/plugin-build-package branch October 22, 2026 05:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants