dotnet / sdk

Core functionality needed to create .NET Core projects, that is shared between Visual Studio and CLI
https://dot.net/core
MIT License
2.7k stars 1.06k forks source link

"dotnet tool list -g": should show depreciated state #18727

Open Der-Kraken opened 3 years ago

Der-Kraken commented 3 years ago

The dotnet-cli is a great experience if you like to automate things. I also want to automate things so I developed a own dotnet-tool which is hosted for my company on a own on-premise Azure Devops server. The problem begins to roll out new versions of that tool. Some colleagues always forget to update it. So I want to show a hint to the user if the tool is depreciated.

Problem: The dotnet-cli has no command to update all tools at once. You must call dotnet tool update for each specific product. Also there is no command to check if a newer version would be available.

The only way atm ist to call dotnet tool search. Because in that output the newest version will be listed. But that command only target nuget.org. So it is useless for me.

Solution: Provide a own command to check if the tool (or local nuget) is depreciated. Alternative an option on list: dotnet tool list -g -checkversion.

My Workaround: Atm. I will use the devops-api to get the newest version number. At startup my tool compares the version an shows a hint. This is working good enough for me. But I think that this feature would be good for other people too.

dotnet-issue-labeler[bot] commented 3 years ago

I couldn't figure out the best area label to add to this issue. If you have write-permissions please help me learn by adding exactly one area label.