Repository navigation
Bump Microsoft.Build.Framework and Microsoft.NET.StringTools - #620
dependabot[bot] wants to merge 1 commit into
Conversation
Bumps Microsoft.Build.Framework from 18.7.1 to 18.12.2 Bumps Microsoft.NET.StringTools from 18.7.1 to 18.12.2 --- updated-dependencies: - dependency-name: Microsoft.Build.Framework dependency-version: 18.12.2 dependency-type: direct:production update-type: version-update:semver-minor - dependency-name: Microsoft.NET.StringTools dependency-version: 18.12.2 dependency-type: direct:production update-type: version-update:semver-minor ... Signed-off-by: dependabot[bot] <support@github.com>
Skymly
left a comment
There was a problem hiding this comment.
结论
这次不能合。Dependabot 把 Microsoft.Build.Framework 和 Microsoft.NET.StringTools 齐步从 18.7.1 升到 18.12.2,两个包没有拆开,#498 的运行时排除也已经在位——这些都对。但 18.12.2(以及从 18.10.1 起的版本)已经去掉 net10.0 TFM,和本仓库的 target / SDK 钉钉对不上。#614 审查里第 2 点已经说过同一件事。
关键问题
18.12.2 已去掉 net10.0,net10.0 工程会落到仅含引用程序集的 netstandard2.0
- 工程 target 是 net10.0,
global.json钉 SDK 10.0.100(rollForward: latestFeature)。 - 18.7.1 仍提供 net10.0 实现,并依赖同版本
Microsoft.NET.StringTools。 - 核过 NuGet nuspec:
- 18.7.1 / 18.8.2 / 18.9.6:仍有 net10.0
- 18.10.1 / 18.11.0 / 18.12.2:只剩 net11.0 / net472 / netstandard2.0
- 官方包说明(https://www.nuget.org/packages/Microsoft.Build.Framework/18.12.2):`netstandard2.0` 只出引用程序集,运行时应使用 net11.0 或 net472。「Please use the
net11.0-targeted assemblies for .NET 11+ scenarios.」
按 #498 / #593,Server / Tests / Bench 已经对这两个包加了 ExcludeAssets="runtime" + PrivateAssets="all",运行时由 Locator 从已安装的 SDK 10 加载。编译期如果改成对着 18.12.2 的 netstandard2.0 引用程序集(面向 .NET 11 的 API 面),和 SDK 10 的实现更容易对不齐。即便 build-and-test 最后变绿(引用程序集往往仍能恢复/编译过),也不能证明运行时与 SDK 10 对齐是安全的。本次 CI 在审查时仍在跑。
建议
- 保持 18.7.1。
Workspaces.MSBuild5.12.0 的 net10.0 下限就是Microsoft.Build.Framework >= 18.7.1,当前组合已经满足。 - 若只是想跟新一点的 18.x,上限是仍带 net10.0 TFM 的 18.9.6(Framework 与 StringTools 必须继续齐步)。
- 不要升到 18.10.1 / 18.11.0 / 18.12.2,直到仓库转到 net11.0 / SDK 11。
这次做得对的地方
- Framework 与 StringTools 一起升到同一版本(18.12.2 对 StringTools 是精确
= 18.12.2,只升其中一个会坏)。 - 没有拆开 Roslyn 组,也没有动
tests/fixtures。 - #498 的运行时排除,以及 PackedToolSmokeTests 对这两个 dll 不进包的断言,都还在。
| <!-- Each host excludes the Framework and StringTools runtime assets so Locator loads | ||
| both from the same installed SDK as MSBuild (#498). --> | ||
| <PackageVersion Include="Microsoft.Build.Framework" Version="18.7.1" /> | ||
| <PackageVersion Include="Microsoft.Build.Framework" Version="18.12.2" /> |
There was a problem hiding this comment.
18.12.2 已去掉 net10.0 TFM(从 18.10.1 起就只剩 net11.0 / net472 / netstandard2.0)。本仓库是 net10.0 + SDK 10(global.json 钉 10.0.100),会落到官方标明“只出引用程序集”的 netstandard2.0,运行时仍由 Locator 加载 SDK 10 的实现(#498)。请保持 18.7.1,或最多齐步升到仍带 net10.0 的 18.9.6,不要跳到面向 .NET 11 的 18.12.2。StringTools 必须与 Framework 保持同一版本。
Updated Microsoft.Build.Framework from 18.7.1 to 18.12.2.
Release notes
Sourced from Microsoft.Build.Framework's releases.
18.12.2
What's Changed
... (truncated)
18.11.0
What's Changed
... (truncated)
18.10.1
What's Changed
... (truncated)
18.9.6
What's Changed
... (truncated)
18.8.2
What's Changed
... (truncated)
Commits viewable in compare view.
Updated Microsoft.NET.StringTools from 18.7.1 to 18.12.2.
Release notes
Sourced from Microsoft.NET.StringTools's releases.
18.12.2
What's Changed
... (truncated)
18.11.0
What's Changed
... (truncated)
18.10.1
What's Changed
... (truncated)
18.9.6
What's Changed
... (truncated)
18.8.2
What's Changed
... (truncated)
Commits viewable in compare view.
Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting
@dependabot rebase.Dependabot commands and options
You can trigger Dependabot actions by commenting on this PR:
@dependabot rebasewill rebase this PR@dependabot recreatewill recreate this PR, overwriting any edits that have been made to it@dependabot show <dependency name> ignore conditionswill show all of the ignore conditions of the specified dependency@dependabot ignore this major versionwill close this PR and stop Dependabot creating any more for this major version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this minor versionwill close this PR and stop Dependabot creating any more for this minor version (unless you reopen the PR or upgrade to it yourself)@dependabot ignore this dependencywill close this PR and stop Dependabot creating any more for this dependency (unless you reopen the PR or upgrade to it yourself)