nuget.config is ignored, specifically the repositoryPath

喜欢而已 提交于 2019-12-12 10:36:58

问题


Visual Studio 2015 ignores my nuget.config that lies in the solution directory. This file has the following content:

<?xml version="1.0" encoding="utf-8"?>
<settings>
  <repositoryPath>../packages/nuget</repositoryPath>
</settings>

Visual Studio however simply puts all packages into the packages folder in the solution directory.

This file has worked fine for years when using Visual Studio 2013. Am I missing something?

I am using the latest version of the NuGet extension (3.2)


回答1:


Looks like the format I used so far is no longer supported.

The following file works:

<?xml version="1.0" encoding="utf-8"?>
<configuration>
  <config>
    <add key="repositoryPath" value="..\packages\nuget" />
  </config>
</configuration>


来源:https://stackoverflow.com/questions/33089884/nuget-config-is-ignored-specifically-the-repositorypath

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!