nuget.config 被忽略,特别是 repositoryPath [英] nuget.config is ignored, specifically the repositoryPath

查看:112
本文介绍了nuget.config 被忽略,特别是 repositoryPath的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

Visual Studio 2015 忽略位于解决方案目录中的 nuget.config.该文件具有以下内容:

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 只是将所有包放入解决方案目录中的包文件夹中.

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

使用 Visual Studio 2013 时,此文件多年来一直运行良好.我是否遗漏了什么?

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

我使用的是最新版本的 NuGet 扩展 (3.2)

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

推荐答案

我目前使用的格式似乎不再受支持.

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

以下文件有效:

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

这篇关于nuget.config 被忽略,特别是 repositoryPath的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆