Skip to content

1.17.6

Choose a tag to compare

@BrewingCoder BrewingCoder released this 05 Nov 15:40
· 26 commits to main since this release
e2564cf

Fixed

  • tamp init's tamp.cmd no longer prints a stray 'm' is not recognized error on Windows (#120). The shim's C# raw string carried the line endings of whatever checkout the CLI was compiled from (LF on the ubuntu release runner) and the first rem line held a UTF-8 em dash; under console code page 437, cmd.exe misreads an LF-only batch file containing a multi-byte character and runs a fragment of a later line. The shim is now always emitted with CRLF line endings, whatever OS built the CLI, and is pure ASCII. tamp.sh is likewise pinned to LF. The %~dp0 trailing-backslash trim (not the cause) was dropped and paths now join directly onto %~dp0, which always ends in \. Existing repos keep their broken copy: the shim is written with SkipIfExists, so delete tamp.cmd and re-run tamp init (or convert it to CRLF and replace the em dash by hand) to pick up the fix.
  • tamp init scaffolds the newest released Tamp, not the CLI's own version. init used to pin Tamp.Core, Tamp.NetCli.V10 and the dotnet-tamp local tool to the running CLI's version, so a 1.17.3 CLI produced a 1.17.3 build project. Adding a satellite built against a newer core (Tamp.Heft.V1 0.1.0 requires Tamp.Core >= 1.17.5) then failed restore with NU1605 and nothing said why. init now looks up the newest stable Tamp.Core on the NuGet v3 flat-container feed (nuget.org by default; TAMP_INIT_FEED_URL points it at a mirror) with a 5 s cap, never picks a version older than the CLI, and pins all three to it. It prints the version and where it came from, and suggests dotnet tool update -g dotnet-tamp when the CLI is older than the scaffold. Offline, on timeout or on a bad response it falls back to the CLI's version with a one-line note; init never fails because the feed is unreachable. New --tamp-version <x> pins a version explicitly and skips the lookup. (#119)
  • Actionable message when a satellite needs a newer Tamp.Core. When dispatch to the build project (tamp <target>, and tamp mcp runs) fails and restore reported NU1605 on a Tamp.* package, the CLI now says which package needs which version, what build/Build.csproj pins, and to raise Tamp.Core, Tamp.NetCli.V10 and the dotnet-tamp tool pin together. It reads NuGet's own log from obj/project.assets.json, so the raw NuGet output is still shown above it. (#119)

Backfilled: this version was published to nuget.org at the time but no GitHub Release was created (tamp#159). Notes are this version's CHANGELOG.md section, unedited.