Nuget安装目录

问题描述

我将.net框架项目制成了nuget包。我想在另一个项目中安装该nuget软件包,但是我需要准确指定应在哪个nuget的安装位置,例如(Shell / someDir / 此处)。我知道我必须编辑.nuspec,但要使用什么命令?

我们将不胜感激。

解决方法

我在此线程中找到了所需的答案

Is it possible to change the location of packages for NuGet?

我添加了Nuget.Config文件,它成功复制了nuget文件

<configuration>
  <config>
    <add key="repositoryPath" value="C:\myteam\teampackages" />
  </config>
  ... 
</configuration>