Adding <SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking> because otherwise we'd keep seeing these errors:
C:\Program Files\dotnet\sdk\5.0.201\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5128: Some target frameworks declared in the dependencies group of the nuspec and the lib/ref folder do not have exact matches in the other location. Consult the list of actions below: [G:\NuGet.BuildTasks\src\Microsoft.NuGet.Build.Tasks\Microsoft.NuGet.Build.Tasks.csproj]
C:\Program Files\dotnet\sdk\5.0.201\Sdks\NuGet.Build.Tasks.Pack\build\NuGet.Build.Tasks.Pack.targets(221,5): error NU5128: - Add lib or ref assemblies for the net48 target framework [G:\NuGet.BuildTasks\src\Microsoft.NuGet.Build.Tasks\Microsoft.NuGet.Build.Tasks.csproj]
Adding
<SuppressDependenciesWhenPacking>true</SuppressDependenciesWhenPacking>
because otherwise we'd keep seeing these errors: