CLI发布操作期间Nuget软件包还原错误

时间:2019-05-07 02:46:55

标签: asp.net-core .net-core nuget nuget-package-restore asp.net-core-cli

我一直在尝试编写ASP.NET Core(在Core上)应用程序的“发布”脚本,但一直遇到烦人的Nuget错误(以下摘录中的命令)。

PS E:\PS> dotnet.exe publish E:\Repos\Abatements\CarpsAbatements\CarpsAbatements\CarpsAbatements.csproj /p:PublishProfil
e=Staging
Microsoft (R) Build Engine version 15.9.20+g88f5fadfbe for .NET Core
Copyright (C) Microsoft Corporation. All rights reserved.

  Restoring packages for E:\Repos\Abatements\CarpsAbatements\CarpsAbatements\CarpsAbatements.csproj...
  Restore completed in 67.34 ms for E:\Repos\Abatements\CarpsAbatements\AbatementReports\AbatementReports.csproj.
  Restoring packages for E:\Repos\Abatements\CarpsAbatements\CarpsAbatements\CarpsAbatements.csproj...
  Restore completed in 53.43 ms for E:\Repos\Abatements\CarpsAbatements\CarpsAbatements.Data\CarpsAbatements.Data.csproj.
  Restore completed in 54.76 ms for E:\Repos\Abatements\CarpsAbatements\CarpsAbatements.Domain\CarpsAbatements.Domain.csproj.
  Restore completed in 71.16 ms for E:\Repos\Abatements\CarpsAbatements\AbatementReports\AbatementReports.csproj.
  Restore completed in 946.64 ms for E:\Repos\Abatements\CarpsAbatements\CarpsAbatements\CarpsAbatements.csproj.
C:\Program Files\dotnet\sdk\2.2.103\NuGet.targets(114,5): error : The local source 'C:\Program Files (x86)\DevExpress 17.2\DevExtreme\System\DevExtreme\Bin\AspNetCore' doesn't exist. [E:\Repos\Abatements\CarpsAbatements\CarpsAbatements\CarpsAbatements.csproj]

从所附的屏幕截图中可以看到,没有与错误相关的Nuget源。而且无论如何都不会选中DevExpress-Local来源。

enter image description here

有什么办法可以消除此阻塞错误?
我的发布命令不正确吗?

欢呼

0 个答案:

没有答案