question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Cannot install preview versions of .NET Core Global tools on Linux

See original GitHub issue

Steps 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:open
  • Created 5 years ago
  • Reactions:1
  • Comments:14 (7 by maintainers)

github_iconTop GitHub Comments

9reactions
ThomasPiskolcommented, Nov 25, 2020

Seriously, this defect is known since more than 2 years and apart from postponing nothing happened?

0reactions
wli3commented, Aug 31, 2018

A smilar root cause bug happens when version is 2.11.0-dev-d6ba544b

Read more comments on GitHub >

github_iconTop 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 >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found