nuget: improve support with .NET6
It would be nice to improve the support for CPack/nuget with .NET6. Typically you do not need nuget.exe
in the path anymore.
Typically:
PS C:\> dotnet nuget --version
Welcome to .NET 7.0!
---------------------
SDK Version: 7.0.203
Telemetry
---------
The .NET tools collect usage data in order to help us improve your experience. It is collected by Microsoft and shared with the community. You can opt-out of telemetry by setting the DOTNET_CLI_TELEMETRY_OPTOU
T environment variable to '1' or 'true' using your favorite shell.
Read more about .NET CLI Tools telemetry: https://aka.ms/dotnet-cli-telemetry
----------------
Installed an ASP.NET Core HTTPS development certificate.
To trust the certificate run 'dotnet dev-certs https --trust' (Windows and macOS only).
Learn about HTTPS: https://aka.ms/dotnet-https
----------------
Write your first app: https://aka.ms/dotnet-hello-world
Find out what's new: https://aka.ms/dotnet-whats-new
Explore documentation: https://aka.ms/dotnet-docs
Report issues and find source on GitHub: https://github.com/dotnet/core
Use 'dotnet --help' to see available commands or visit: https://aka.ms/dotnet-cli
--------------------------------------------------------------------------------------
NuGet Command Line
6.5.0.136
Ref:
% git blame -- Modules/Internal/CPack/CPackNuGet.cmake | grep find_pro
8a4732c60e5 Modules/Internal/CPack/CPackNuGet.cmake (Mathieu Malaterre 2019-06-05 10:17:21 +0200 342) find_program(NUGET_EXECUTABLE nuget)