Skip to content

dotnet nuget why on non-sdk style project's assets file doesn't work #14695

@zivkan

Description

@zivkan

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.

Metadata

Metadata

Assignees

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions