Open schultetwin1 opened 5 years ago
Don’t believe this is a regression.
NuGet.exe does not have any advanced UI capabilities currently.
As @rrelyea said, not a regression.
I agree this is not a regression, but most license files do not require advanced UI capabilities. The license text could just be spit out to the console with an interactive yes/no prompt. Would that be a possibility for a future feature?
//cc @karann-msft Thoughts about this ask?
@schultetwin1
That might be a solution, but can't comment further as we have not analyzed it.
Note that any sort of interactive addition to this would probably not be there by default, as we would break everyone using nuget install in their scripts on the CIs.
Note that any sort of interactive addition to this would probably not be there by default, as we would break everyone using nuget install in their scripts on the CIs.
Totally makes sense. I would be fine with a command line switch for the install command.
Packages can be installed via:
1) VS UI 2) VS Package Management Console -- “install-package” 3) Hand editing csproj (in VS with sdk-style projects) or in notepad, etc… 4) Dotnet add package 5) Nuget.exe install [old command…doesn’t work in all scenarios]
Today, we show licenses as part of VS UI only.
Details about Problem
When using the command line tool nuget.exe to install nuget packages, the requiredLicenseAcceptance field in a package does not appear to do anything. No license text is ever shown.
NuGet product used: NuGet.exe
NuGet version: 5.0.2.5988
OS version: Windows 10 1903 (18362.175)
Worked before?: Not that I know of
Detailed repro steps so we can see the same problem
Install a package using nuget.exe "install" command
nuget.exe install -verbosity detailed Microsoft.Azure.Kinect.Sensor
Expect a license acceptance to be displayed to the user. But the installation occurs with no display of the license.
Verbose Logs
Output from command
Contents of Microsoft.Azure.Kinect.Sensor.nuspec: