AppVeyor无法恢复fody.targets

时间:2016-07-01 23:01:45

标签: continuous-integration appveyor

我尝试在github上为我的项目设置appveyor。我在预构建中添加了“nuget restore”命令。但现在我收到此错误消息:

"C:\projects\moneyfox\Src\MoneyFox.sln" (default target) (1) ->
"C:\projects\moneyfox\Src\MoneyFox.Windows\MoneyFox.Windows.csproj" (default target) (2) ->
"C:\projects\moneyfox\Src\MoneyFox.Shared\MoneyFox.Shared.csproj" (default target) (3) ->
(EnsureNuGetPackageBuildImports target) -> 
  C:\projects\moneyfox\Src\MoneyFox.Shared\MoneyFox.Shared.csproj(276,5): error : This project references NuGet package(s) that are missing on this computer. Use NuGet Package Restore to download them.  For more information, see http://go.microsoft.com/fwlink/?LinkID=322105. The missing file is ..\packages\Fody.1.29.4\build\portable-net+sl+win+wpa+wp\Fody.targets.
"C:\projects\moneyfox\Src\MoneyFox

我错过了什么?

1 个答案:

答案 0 :(得分:0)

我设法通过首先让appveyor选择他自己的构建配置,然后通过直接在sln文件上执行nuget restore来修复它:

nuget restore Src\MoneyFox.sln