Skip to content

NullReferenceException with latest version 3.0.67 #784

@odin568

Description

@odin568

Describe the bug

Renovate updated the dependency of this library from 2.1.175 -> 3.0.67. Now my builds are failing with:

0>Microsoft.Web.LibraryManager.Build.targets(35,9): Error MSB4018 : The "Microsoft.Web.LibraryManager.Build.RestoreTask" task failed unexpectedly.
System.NullReferenceException: Object reference not set to an instance of an object.
   at Microsoft.Web.LibraryManager.Build.RestoreTask.PopulateFilesWritten(IEnumerable`1 results, IHostInteraction hostInteraction)
   at Microsoft.Web.LibraryManager.Build.RestoreTask.Execute()
   at Microsoft.Build.BackEnd.TaskExecutionHost.Execute()
   at Microsoft.Build.BackEnd.TaskBuilder.ExecuteInstantiatedTask(TaskExecutionHost taskExecutionHost, TaskLoggingContext taskLoggingContext, TaskHost taskHost, ItemBucket bucket, TaskExecutionMode howToExecuteTask)

I don't use any specialties with libman, my libman.json is more or less:

{
  "version": "1.0",
  "libraries": [
    {
      "provider": "jsdelivr",
      "library": "bootstrap@5.3.3",
      "destination": "wwwroot/lib/bootstrap/",
      "files": [
        "**/*",
        "!.md",
        "!package.json"
      ]
    }
...

I am happy to provide more details, but in fact that is all I have configured to use libman with my application (ASP.NET Core 8). Everything runs inside .NET 8 context (latest versions).

To Reproduce

Update from 2.1.175 -> 3.0.67

Expected behavior

Should work as before :)

Screenshots

Additional context

Metadata

Metadata

Assignees

Labels

No labels
No labels

Type

No type

Projects

No projects

Milestone

No milestone

Relationships

None yet

Development

No branches or pull requests

Issue actions