NuGet.Config,.csproj和.nuspec位于同一文件夹(项目文件夹)中 . 这是我的NuGet.Config:
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<config>
<add key="repositoryPath" value="..\packages" />
</config>
</configuration>
当我在项目文件夹中的powershell中键入 nuget pack
时,.nupkg文件在同一文件夹中创建,而不是在.. \ packages文件夹中创建 .
版本:NuGet版本:4.1.0.2450,Visual Studio 2015
我用谷歌搜索了几个小时,仍然没有运气的解决方案 .
试过这个仍然不起作用:nuget.config is ignored, specifically the repositoryPath