Repository navigation
feat: 增加 MSBuild 打包包与 PackPlugin 目标 - #3
Conversation
Codex Review SummaryThis comment shows the latest Codex review activity on this pull request.
ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
Codex reacts with 👀 while any review is running, comments if it has suggestions, and reacts with 👍 once all reviews finish with no findings. |
There was a problem hiding this comment.
💡 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 "$(HosihikariPackToolPath)" pack-plugin-from-assembly "$(TargetPath)" "$(HosihikariPluginManifest)" "$(HosihikariPluginOutputRoot)"" /> |
There was a problem hiding this comment.
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 👍 / 👎.
|
@codex review |
|
Codex Review: Didn't find any major issues. Another round soon, please! Reviewed commit: ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
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". |
改动
Hosihikari.Plugin.Build包,携带打包器与PackPluginMSBuild 目标。dotnet build -t:PackPlugin,默认把包写到dist/<name>/。pack-plugin-from-assembly,从TargetPath取构建输出目录,避开 Windows 命令行收尾反斜杠转义。验证
bash tools/Build/smoke.sh通过,产物含 DLL、deps 与 manifest,且不含共享契约。