【发布时间】:2013-08-13 12:27:01
【问题描述】:
错误只发生在一台机器上。
尝试
错误的路径
我认为任何来源的路径都可能是错误的,所以我打开NuGet.Config检查,3条路径都正确!
<?xml version="1.0" encoding="utf-8"?>
<configuration>
<packageRestore>
<add key="enabled" value="True" />
</packageRestore>
<packageSources>
<add key="NuGet official package source" value="https://nuget.org/api/v2/" />
<add key="Nightly ASP.NET Web Stack" value="http://www.myget.org/F/aspnetwebstacknightly/" />
<add key="Bind Solution" value="W:\Cloud\Dropbox\Bind Defaults\Nuget Repository" />
</packageSources>
<disabledPackageSources />
<activePackageSource>
<add key="NuGet official package source" value="https://nuget.org/api/v2/" />
</activePackageSource>
</configuration>
Nuget.exe 不存在
检查.nuget 文件夹,.exe 在目录中!
签入路径的窗口,有!
我尝试手动运行命令,运行成功!
nuget install packages.config -source "" -NonInteractive -RequireConsent -solutionDir "W:\C
lients\creditoimobiliariobb\sistema\src\CreditoImobiliarioBB\ "
完全错误:
错误 1 系统找不到指定的路径。 CreditoImobiliarioBB.Domain
错误 2 命令 ""W:\Clients\creditoimobiliariobb\sistema\src\CreditoImobiliarioBB.nuget\NuGet.exe" install "W:\Clients\creditoimobiliariobb\sistema\src\CreditoImobiliarioBB\CreditoImobiliarioBB.Model\packages.config " -source "" -NonInteractive -RequireConsent -solutionDir "W:\Clients\creditoimobiliariobb\sistema\src\CreditoImobiliarioBB\ " " 以代码 -1 退出。 CreditoImobiliarioBB.Domain
注意事项
只有具有本地包的项目(来源为key="Bind Solution" value="W:\Cloud\Dropbox\Bind Defaults\Nuget Repository")才会遇到麻烦。最近,包的位置移动到了另一个目录(在本例中为W:\Cloud\Dropbox\Bind Defaults\Nuget Repository)。
【问题讨论】:
-
可能没有,但你注意到空间了吗? -> "W:\C lients\cr"
标签: nuget nuget-package