-
Notifications
You must be signed in to change notification settings - Fork 1.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
.NET local tool install not working with .NET 8 RC2 SDK #36539
Comments
Also appears to fail with a global tool: error. |
Also tried Running
|
For my specific use case I've been able to workaround the issue by executing the tool directly from where it's restored to: $target = "net8.0"
$version = (Get-Content ".config/dotnet-tools.json" | Out-String | ConvertFrom-Json).tools.docfx.version
$docfx = Join-Path ($env:USERPROFILE ?? "~") ".nuget" "packages" "docfx" $version "tools" $target "any" "docfx.dll"
dotnet $docfx |
Hey @martincostello - thanks for reporting. I see this is on Ubuntu - have you seen similar behavior on any other platforms? |
Looks like it's broken for macOS and Windows too in GitHub Actions: workflow run. |
bizarre - at least on Windows docfx works for me on rc2, and Ubuntu 23.10 on WSL similarly worked on a 'install'. Yet the workflows you have clearly show failure. |
@martincostello Could you try running without |
This look like it's probably caused by this RC2 known issue: https://github.com/dotnet/core/blob/main/release-notes/8.0/known-issues.md#-80100-rc2-dotnet-tool-restore-will-always-install-the-latest-version-of-a-specific-tool The repro specifies version 2.72.0 of the tool, but because of the bug the SDK restores the latest available version (2.72.1) instead. But then when the SDK goes to run the tool it is looking for 2.72.0 and can't find it. A workaround would be to update the tools manifest to use the latest version of the tool (2.72.1 right now). |
I'll try that now, but I think I opened this issue before the .1 release shipped on Friday, and then when I saw there was a newer version available I updated Polly and rebased my branch for .NET 8 there and it was still broken. |
Yep, that was it. It's fixed now. Must have been a very unfortunate sequence of timing that meant the new docfx release came out just as I fixed the issues we had in that branch and then I must not have rebased it to include the tool update in that branch until after I'd applied the workaround I posted earlier. |
Thanks for confirming. Closing as fixed. |
Describe the bug
Attempting to install a .NET local tool with the .NET 8 RC2 SDK apparently succeeds, but then when trying to run the tool the command fails and the user is prompted to run
dotnet tool install
.To Reproduce
A self-contained repro repository using GitHub Actions can be found at https://github.com/martincostello/docfx-dotnet-8-repro.
Exceptions (if any)
None.
Further technical details
The text was updated successfully, but these errors were encountered: