Skip to content

PeachPied.WordPress.Build.Plugin NuGet package missing required DLL (build/netstandard2.0/PeachPied.WordPress.Build.Plugin.dll) #147

@mkn8rn

Description

@mkn8rn

Describe the bug
I am trying to use the PeachPied.WordPress.Build.Plugin NuGet package (version 6.7.1) in a .NET 8 project, but MSBuild fails with the following error:
The "WpPluginTask" task could not be loaded from the assembly ...\build\netstandard2.0\PeachPied.WordPress.Build.Plugin.dll. Could not load file or assembly '...PeachPied.WordPress.Build.Plugin.dll' or one of its dependencies. The system cannot find the file specified.

After investigating, I found that the build/netstandard2.0/PeachPied.WordPress.Build.Plugin.dll file is missing from the NuGet package, both after a local restore and when inspecting the .nupkg file downloaded directly from NuGet.org. This prevents MSBuild from loading the required task and breaks plugin compilation.

To Reproduce

  1. Add PeachPied.WordPress.Build.Plugin version 6.7.1 to a .NET project.
  2. Restore NuGet packages.
  3. Observe that build/netstandard2.0/PeachPied.WordPress.Build.Plugin.dll is missing from the package directory.
  4. Build the project and see the MSBuild error above.

Expected behavior
The NuGet package should include the required DLL so that MSBuild can load the WpPluginTask.

Additional context
• .NET 8 project
• Visual Studio 2022
• Issue occurs on multiple machines and after clearing the NuGet cache
• The DLL is also missing from the .nupkg file when downloaded and extracted manually

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions