DT1001 failed to solve: rpc error: code = Unknown desc = failed to compute cache key: "/nuget.config"
在代码库中存在 NuGet.config
文件时,通过 VisualStudio 为项目添加了 Dockerfile 时,自动添加的 Dockerfile 会把 NuGet.config
变为小写的 nuget.config
,由于 Windows 文件系统不区分大小写,Linux 文件系统区分大小写,所以会报错,将 Dockerfile 中的 nuget.config
改为 NuGet.confg
就可以了