- fix:
paket installandpaket updateadd<AutoGenerateBindingRedirects>true</AutoGenerateBindingRedirects>to a project only when they write binding redirects to itsapp.configorweb.config, and only when the project doesn't set the property: anAutoGenerateBindingRedirectsoffalsestaysfalse. They used to set it totruein every project with such a file, also when no redirect was written, as withredirects: off, and saved those project files (#4158, #4139) - fix: The bash completion completes
pakettoo, not onlypaket.exe: a global tool, a Paket installed with--tool-pathor thepaketalias ofdotnet paket. It falls back to file names, as inpaket pack out<TAB>. Remove thecomplete -F _paket paketthat the README advised for the alias: it replaces the one of the script, without that fallback - fix(BREAKING): Completing a package, a version or a group in zsh no longer runs files of the repository. The completion runs the
paket.dllof the local tool restored inNUGET_PACKAGESor~/.nuget/packages, withdotnet, instead ofdotnet paket, which thesdk.pathsof theglobal.jsonof the repository can point at an SDK of the repository. It reads noNuGet.config: exportNUGET_PACKAGESwhen yours setsglobalPackagesFolder. It no longer runs.paket/paket.exefirst, which can be the one of Paket 11 that fails without mono outside Windows, nor any Paket of the current folder unless thepaket-executablestyle lists it: for a Paket installed with--tool-path .paket, addzstyle ':completion::complete:paket:*' paket-executable ./.paket/paket - fix(BREAKING): The zsh completion completes package IDs and versions from
https://www.nuget.org/api/v2, or from the sources of thepackage-sourcesstyle, instead of the sources ofpaket.dependencies: their credentials can name environment variables, whose valuespaket find-packagessent to those sources when TAB ran it. To query other feeds, addzstyle ':completion::complete:paket:*' package-sources https://www.nuget.org/api/v2 https://example.com/feed/v2: Paket doesn't send them the credentials stored withpaket config add-credentials, and only reads the versions of a v2 feed. It no longer completes the warnings that paket prints, such asIgnoring error when requesting, and a quote in the word being completed no longer breaks the command - fix: The zsh completion runs the local tool of the closest
.config/dotnet-tools.jsonordotnet-tools.jsonfrom the current folder up that declares paket, without looking above anisRootone, as dotnet does; else, or when that tool isn't restored, a global tool. It used to read only./.config/dotnet-tools.json, where any"paket"counted - fix: The zsh completion applies the styles set for one command, such as
zstyle ':completion::complete:paket:add:*' infix-match yesorzstyle ':completion::complete:paket:find-packages:' disable-completion yes, topaketand not only topaket.exe - fix: The zsh completion completes the installed packages for
paket whyandpaket find-refs, and after--group: it passed the group topaket show-installed-packages, which takes none - fix:
#r "paket:"in F# scripts runs the local tool, and the Paket .NET tool restored in the NuGet packages folder, with the first dotnet that has a .NET runtime that the tool runs on, looking at the one that runs the script, then inDOTNET_ROOT, thePATHand the default install folders. It used to rundotnetfrom thePATHunlessDOTNET_HOST_PATHwas set, which failed in an IDE or an app that hosts F# Interactive without dotnet on itsPATH. When it finds no dotnet, it asks to setDOTNET_ROOTor to add dotnet to thePATH, instead of failing to startdotnet, and when Paket fails, the error shows the whole command it ran - fix:
#r "paket:"in F# scripts runs thepaket.dllof the local tool thatdotnet tool restorerecorded, asdotnet tool rundoes. When there is none, it looks for the local tool in the NuGet packages folder, and then in~/.nuget/packages, as for the most recent Paket .NET tool restored. The NuGet packages folder isNUGET_PACKAGES, or else the one thatdotnet nuget locals global-packages --listgives when run in the folder that has the tool manifest, or in the folder of the script: theglobalPackagesFolderof thenuget.configfiles, or~/.nuget/packages. It looked inNUGET_PACKAGESor~/.nuget/packagesonly, and asked to rundotnet tool restorefor a local tool restored elsewhere. When the local tool isn't restored, the warning or the error that says so gives the folders it looked in and the folder to rundotnet tool restorein - fix: When neither
HOMEnorUSERPROFILEis set,#r "paket:"in F# scripts no longer fails with anArgumentNullExceptionwhile looking for a global tool, and with an emptyHOMEit no longer looks for one in the current folder - fix: When the tool manifest declares paket but its local tool isn't restored,
#r "paket:"in F# scripts warns and runs a global tool, or else the most recent Paket .NET tool restored in the NuGet packages folder, instead of failing, and when it finds neither, it fails asking to rundotnet tool restore; it still skips a Paket installed with--tool-path. The Paket that runs instead may be another version: when it fails, the error ends by repeating that the local tool isn't restored, and when it succeeds, the next run runs Paket again, with the local tool once it is restored, which installs the versions written inpaket.lockby the Paket that ran instead, aspaket installdoes - fix: When the tool manifest says
"rollForward": truefor paket, asdotnet tool install --allow-roll-forwardwrites it,#r "paket:"in F# scripts runs the local tool withdotnet --roll-forward Major, asdotnet tool rundoes: whateverDOTNET_ROLL_FORWARDsays, it takes the firstdotnetthat has the .NET version of the tool or a later one, and runs on a later major version when thatdotnetlacks the one of the tool. It ran the tool as itsruntimeconfig.jsonandDOTNET_ROLL_FORWARDsaid: withDOTNET_ROLL_FORWARDset toMinor,LatestMinororLatestPatch, it failed wheredotnet paketworked when nodotnethad the .NET version of the tool, such as .NET 10 for Paket 12, withDisablewhen none had the exact version it asks for, such as .NET 10.0.0, and withLatestMajorit ran on the latest major version of thedotnet - fix:
#r "paket:"in F# scripts finds the local tool when the tool manifest gives its version in a form that NuGet normalizes, such as12.0-alpha003or12.0.0+sha: it looked for the tool under that form, whiledotnet tool restorerecords and restores it under the normalized version,12.0.0-alpha003or12.0.0, so it took the local tool as not restored. As dotnet, it takes a manifest that gives paket a version that NuGet refuses as invalid, where it looked for the tool under that version, or ignored the paket tool when the version was empty - fix:
#r "paket:"in F# scripts reads the tool manifest as JSON, as dotnet does: only the tools of"tools"count, the property names other than the IDs of the tools are case-sensitive, and the last"isRoot","version"or"rollForward"counts when one is written twice. As dotnet, it doesn't look for the local tool in or above a manifest that isn't JSON, which allows no comment or trailing comma, that isn't a JSON object, that has no"isRoot"set totrueorfalse, whose"tools"isn't an object, or whose paket tool has no"version": it warns and runs the Paket that runs without a manifest that declares paket, which may be another version, and fails with the reason only when it finds none; as when the local tool isn't restored, the error of that Paket repeats the reason, and its result isn't kept. It doesn't check the rest: it still reads a manifest that dotnet refuses for the"version"of the manifest, for another tool, or for the"commands"of the paket tool or a"rollForward"that isn'ttrueorfalse, which it takes asfalse. It looked for a"paket"object and for"isRoot"anywhere in the manifest, and for the"version"of paket before the first}, without case, so that a property in a comment or the"paket"object of another tool when it had a"version"counted, an object in the paket tool hid the properties after it, and a manifest that dotnet refuses could still give the version of paket or tell whether to look above it - fix:
#r "paket:"in F# scripts reads a tool manifest at the root of a drive only where dotnet does: on Windows, where any user can create a folder there, only whenDOTNET_TOOLS_ALLOW_MANIFEST_IN_ROOTistrueor1, and elsewhere unless it is set to another value. It looks for a Paket installed with--tool-paththere, directly or in a.paketfolder, only on the same terms. It read them everywhere, so that a manifest that another user created could choose the Paket that runs, and apaket.exethat another user created ran - fix:
paket packfinds the output folder of an SDK project for the frameworks that the project writes otherwise than Paket names them, such asnet8.0-windows(net8.0-windows7.0),net8.0-windows10.0.19041orNET472. It failed with "Unable to find Debug output path node" when the project sets noOutputPath, and took theOutputPathwithout the framework folder otherwise. It also read the assembly of a project that writesNET472inbin/Debug/NET472, while the SDK names the folder in lowercase, which failed on a case-sensitive file system - #4504 - fix:
paket packskips the entries ofTargetFrameworksthat expand to blank, as a property defined outside of the project file in$(ExtraTargetFramework) ;net8.0, when it reads the assembly of a project: it took the first one, and failed with "Unable to find Debug output path node" or took theOutputPathwithout the framework folder - fix:
paket packfinds the output folders of a project that emptiesTargetFrameworknext toTargetFrameworks, as to clear the one of Directory.Build.props: it only looked for them in the emptyTargetFramework, and failed with "Unable to find Debug output path node" or took theOutputPathwithout the framework folder