Cannot install preview versions of .NET Core Global tools on Linux
See original GitHub issueSteps to reproduce
When I try to install a preview package of myglobal tool like:
dotnet pack -o ../Deploy /p:Version=2.3.0-PR
+
dotnet tool install -g dotnet-retire --add-source ../Deploy --version=2.3.0-PR
If I remove the suffix -PR
in both commands, it works fine.
I get the following error on Linux:
The settings file in the tool's NuGet package is invalid:
Failed to retrieve tool configuration:
Could not find a part of the path
'/root/.dotnet/tools/.store/dotnet-retire/2.3.0-pr/dotnet-retire/2.3.0-PR/tools/netcoreapp2.1/any/DotnetToolSettings.xml'.
Tool 'dotnet-retire' failed to install. Please contact the tool author for assistance.
Expected behavior
It should install
Actual behavior
It does not install
Environment data
dotnet --info
output:
Building using docker: FROM microsoft/dotnet:2.1-sdk
Sample Dockerfile: https://github.com/RetireNet/dotnet-retire/blob/32b34a7453d1ddff4d6151a187858cd95a718898/Vulnerable.Dockerfile
Issue Analytics
- State:
- Created 5 years ago
- Reactions:1
- Comments:14 (7 by maintainers)
Top Results From Across the Web
Troubleshoot .NET tool usage issues
So, . NET tools created using preview versions must be rebuilt and republished by the author and reinstalled.
Read more >Cannot install anything using dotnet tool install command
it looks like dotnet tool iterates the nuget.config sources and when one fails, it doesn't continue with next ones.
Read more >Running .NET Core global tools in non-sdk Docker images
When you install a new major or preview version of the .NET Core SDK, you might not be able to run your existing...
Read more >.NET Core 2.1 Global Tools
NET Core CLI installs global tools to $HOME/.dotnet/tools (Linux/macOS) or %USERPROFILE%\.dotnet\tools (Windows). This means you cannot install ...
Read more >NET
NET (previously named .NET Core) is a FOSS software framework from Microsoft for C#, Visual Basic, and F#.
Read more >Top Related Medium Post
No results found
Top Related StackOverflow Question
No results found
Troubleshoot Live Code
Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start FreeTop Related Reddit Thread
No results found
Top Related Hackernoon Post
No results found
Top Related Tweet
No results found
Top Related Dev.to Post
No results found
Top Related Hashnode Post
No results found
Top GitHub Comments
Seriously, this defect is known since more than 2 years and apart from postponing nothing happened?
A smilar root cause bug happens when version is
2.11.0-dev-d6ba544b