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
- Add PeachPied.WordPress.Build.Plugin version 6.7.1 to a .NET project.
- Restore NuGet packages.
- Observe that build/netstandard2.0/PeachPied.WordPress.Build.Plugin.dll is missing from the package directory.
- 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