NuGet Restore的多个位置

时间:2013-07-15 11:48:58

标签: c# .net nuget nuget-package

我知道我可以在nuget.targets文件中添加不同的位置,我知道NuGet可以通过读取文件共享来工作。

我可以将文件共享放在nuget.targets文件中吗?

这样我的构建服务器就可以使用nuget.targets文件来获取nupkg了。

我试过这个但似乎不起作用:

<ItemGroup Condition=" '$(PackageSources)' == '' ">
    <!-- Package sources used to restore packages. By default will used the registered sources under %APPDATA%\NuGet\NuGet.Config -->
        <PackageSource Include="https://nuget.org/api/v2/" />
        <PackageSource Include="//jcwinvm/Packages" />
  </ItemGroup>

1 个答案:

答案 0 :(得分:0)

使用反斜杠尝试:

<PackageSource Include="\\jcwinvm\Packages" />
相关问题