Move to Microsoft.Build.Framework 18.9.6 and pin StringTools - #71
Merged
Conversation
…anion The daily Update Packages workflow bumps Microsoft.Build.Framework to 18.x, which transitively pulls in Microsoft.NET.StringTools at the same version. Microsoft.Build.Locator's build-time target then fails the build (MSBL001) unless that companion package also carries ExcludeAssets="runtime" PrivateAssets="all", mirroring the existing Microsoft.Build.Framework reference. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
Merged
5 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Microsoft.Build.Frameworkfrom17.11.48to18.9.6and transitively pulls inMicrosoft.NET.StringToolsat the same version, causing the subsequentdotnet buildstep to fail with:Microsoft.Build.Frameworkto18.9.6inDirectory.Packages.props(latest stable per NuGet.org) and adds a matchingMicrosoft.NET.StringTools18.9.6PackageVersionentry alongside it.PackageReferenceforMicrosoft.NET.StringToolswithExcludeAssets="runtime" PrivateAssets="all"next to the existingMicrosoft.Build.Frameworkreference inSource/Cli/Cli.csprojandSource/Cli.Specs/Cli.Specs.csproj, mirroring the patternMicrosoft.Build.Locator's own build target requires (both packages must come from the installed .NET SDK thatMSBuildLocatorregisters, never from the output folder).Test plan
dotnet build(Debug) at repo root — succeeds, 0 warnings, 0 errorsdotnet build --configuration Releaseat repo root (matches CI) — succeeds, 0 warnings, 0 errorsdotnet test Source/Cli.Specs/Cli.Specs.csproj --configuration Release— 446/446 passed🤖 Generated with Claude Code