1

在启动并运行新服务器后,我试图让 dnx 项目正常工作。我在一个项目上运行了 dnu restore,并得到了这个错误。

C:\apps\ElasticIndexer\app\project.json 中的错误无法找到 Dependency TestApplication >= 1.0.1

使用的提要: https ://api.nuget.org/v3-flatcontainer/

我的问题是我无法更改使用的 nuget 提要,因为我们将 nuget 包托管在不同的服务器上。我在 %appdata% 中搜索,没有 nuget 的文件夹。然后我决定在整个服务器上搜索 nuget.config 并且没有 nuget.config 文件。

我不想在此服务器上安装 Visual Studio,但是我的 %appdata% 文件夹中没有 nuget 文件夹有什么原因吗?dnu 怎么知道默认搜索 api.nuget.org?安装最新的 dnvm 时,是否也应该创建 nuget 位置,还是我需要手动创建文件夹和配置文件?

4

1 回答 1

0

如果您的服务器上没有 nuget.config 文件,您可以尝试运行 nuget install。如果这不起作用,请尝试通过命令行更新源:

NuGet.exe Sources Add -Name <feedName> -Source <pathToPackageSource>
于 2016-05-12T16:11:45.937 回答