NuGet Product Used
dotnet.exe
Product Version
10.0.1xx
Worked before?
8.0.1xx doesn't crash, but also doesn't find packages used by the project
Impact
It's more difficult to complete my work
Repro Steps & Context
Create a non-SDK style (.NET Framework) project, install a package using PackageReference, then run dotnet nuget why path\to\proejct.assets.json Some.Package but replace Some.Package with the package name that you installed (or a transitive package).
Verbose Logs
Unhandled exception: Object reference not set to an instance of an object.
no stack trace is shown, even when using the NUGET_SHOW_STACK environment variable.
NuGet Product Used
dotnet.exe
Product Version
10.0.1xx
Worked before?
8.0.1xx doesn't crash, but also doesn't find packages used by the project
Impact
It's more difficult to complete my work
Repro Steps & Context
Create a non-SDK style (.NET Framework) project, install a package using PackageReference, then run
dotnet nuget why path\to\proejct.assets.json Some.Packagebut replace Some.Package with the package name that you installed (or a transitive package).Verbose Logs
Unhandled exception: Object reference not set to an instance of an object. no stack trace is shown, even when using the NUGET_SHOW_STACK environment variable.