You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Looks like dotnet nuget package list could do a check to determine if the project is restored. It seems to do that when the project is specified explicitly.
C:\Users\rlander\dotnet8proj>dotnet nuget packageNuGet Command Line 6.12.0.81Usage: NuGet.CommandLine.XPlat.dll package [options] [command]Options: -h|--help Show help information --version Show version informationCommands: add Adds a package reference to a project. list Lists all the packages used by the current project(s). remove Removes a package reference from a project.Use "NuGet.CommandLine.XPlat.dll package [command] --help" for more information about a command.C:\Users\rlander\dotnet8proj>dotnet nuget package listerror: Value cannot be null. (Parameter 'path')C:\Users\rlander\dotnet8proj>dotnet nuget package list dotnet8proj.csprojNo assets file was found for `dotnet8proj.csproj`. Please run restore before running this command.C:\Users\rlander\dotnet8proj>dotnet restoreRestore succeeded with 1 warning(s) in 0.9s C:\Users\rlander\dotnet8proj\dotnet8proj.csproj : warning NU1903: Package 'System.Formats.Asn1' 8.0.0 has a known high severity vulnerability, https://github.com/advisories/GHSA-447r-wph3-92pmBuild succeeded with 1 warning(s) in 1.0sC:\Users\rlander\dotnet8proj>dotnet nuget package list dotnet8proj.csprojProject 'dotnet8proj' has the following package references [net8.0]: Top-level Package Requested Resolved > System.Formats.Asn1 8.0.0 8.0.0C:\Users\rlander\dotnet8proj>type dotnet8proj.csproj<Project Sdk="Microsoft.NET.Sdk"> <PropertyGroup> <OutputType>Exe</OutputType> <TargetFramework>net8.0</TargetFramework> <ImplicitUsings>enable</ImplicitUsings> <Nullable>enable</Nullable> </PropertyGroup> <ItemGroup> <PackageReference Include="System.Formats.Asn1" Version="8.0.0" /> </ItemGroup></Project>C:\Users\rlander\dotnet8proj>dotnet --version9.0.100-rc.1.24452.12
Also, is the following our pattern, with NuGet.CommandLine.XPlat.dll? I assume not.
Use "NuGet.CommandLine.XPlat.dll package [command] --help"
The text was updated successfully, but these errors were encountered:
Looks like
dotnet nuget package list
could do a check to determine if the project is restored. It seems to do that when the project is specified explicitly.Also, is the following our pattern, with
NuGet.CommandLine.XPlat.dll
? I assume not.Use "NuGet.CommandLine.XPlat.dll package [command] --help"
The text was updated successfully, but these errors were encountered: