NuGet 错误 NU5021

The project directory for the source file 'src/Project/Code.cs' could not be found.

问题

NuGet pack 操作使用了 -Symbols 选项进行调用,但未找到源文件的项目目录。

解决方案

请确保源文件位于磁盘上。 否则,请在 NuGet/Home 中提交问题