簡體   English   中英

TFS2018 Nuget未在參考項目中還原

[英]TFS2018 Nuget not restoring in referenced projects

我正在使用TFS2018,並且正在構建使用對另一個項目的引用的解決方案。 該項目正在使用不在計算機上的Nuget。 我在構建步驟之前定義了兩個Nuget步驟。 使用Nuget和Nuget Restore。 我假設Nuget Restore將處理在引用的項目中還原Nuget的問題?

在構建步驟中出現以下錯誤:

> 2017-12-11T18:13:34.4411552Z ##[debug]Processed: ##vso[task.logdetail
> id=b053619e-0646-45e5-8778-efc3bdd6c71a;parentid=567e2a52-8416-481f-9c9c-4bf1c4c56077;name=MYBLLProject.csproj;type=Build;starttime=2017-12-11T18:13:34.4384956Z;state=InProgress;]
> 2017-12-11T18:13:34.4527426Z
> ##[error]MYBLLFolder\MYBLLProject.csproj(79,5): Error : This project references NuGet package(s) that are missing on this
> computer. Enable NuGet Package Restore to download them.  For more
> information, see http://go.microsoft.com/fwlink/?LinkID=322105. The
> missing file is
> C:\a\w\11\s\MyProject\\.nuget\NuGet.targets.
> 2017-12-11T18:13:34.4528532Z ##[debug]Processed: ##vso[task.logissue
> type=Error;sourcepath=C:\a\w\11\s\MYBLLProject\MYBLLProject.csproj;linenumber=79;columnnumber=5;code=;]This
> project references NuGet package(s) that are missing on this computer.
> Enable NuGet Package Restore to download them.

僅當您指向有效的資源位置時,Nuget Restore才能工作。 在這種情況下,您似乎指向的是預期在本地計算機上的資源。 您將需要找到一個包含要查找的Nuget軟件包的Nuget存儲庫,或者將其放入自己的Nuget存儲庫中。

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM