1

我知道我可以向 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>
4

1 回答 1

0

用反斜杠试试:

<PackageSource Include="\\jcwinvm\Packages" />
于 2013-07-15T11:53:19.267 回答