https://www.cnblogs.com/True_to_me/archive/2019/08/24/11404509.html
打开项目文件,删除target节点所有内容,再重新打开。
<Target Name="EnsureNuGetPackageBuildImports" BeforeTargets="PrepareForBuild"> ... </Target>