Third party packages failing to restore as part of Build
hi
after adding a new project (the below is from a simplified project to demonstrate the same issue) im unable to build (creating a package in Nuget) when I have other Nuget packages referenced.
i believe are existing projects are ok because they use:
cache:
- packages -> **\packages.config
so any help much appreciated: build output:
uild started
git clone -q --branch=master git@github.com:Grouptree/TestAppVeyor.git C:\projects\testappveyor
Warning: Permanently added the RSA host key for IP address '140.82.113.3' to the list of known hosts.
git checkout -qf 2f76709a1c34446276a4128963f8e894e95e7f2c
Running Install scripts
set PATH=C:\Program Files (x86)\MSBuild\14.0\Bin;%PATH%
.\deploy\setVersion.ps1
====== Setting version to pre-release v1.0.0-pre0008-2f76709
Set version number to 1.0.0-pre0008-2f76709 on C:\projects\testappveyor\TestAppVeyor\TestAppVeyor.nuspec
Set version number to 1.0.0.0008 on C:\projects\testappveyor\TestAppVeyor\Properties\AssemblyInfo.cs
===============================================
appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v3.2.0-rc/nuget.exe
Downloading nuget.exe (3,740,336 bytes)...100%
.\deploy\nuget-restore
Restoring NuGet package Newtonsoft.Json.12.0.3.
Using credentials from config. UserName: nuget
Using credentials from config. UserName: nuget
WARNING: Unable to find version '12.0.3' of package 'Newtonsoft.Json'.
Unable to find version '12.0.3' of package 'Newtonsoft.Json'.
Exception of type 'NuGet.CommandLineException' was thrown.
Oops, nuget restore exited with code 1 - let us try again!
Restoring NuGet package Newtonsoft.Json.12.0.3.
Using credentials from config. UserName: nuget
Using credentials from config. UserName: nuget
WARNING: Unable to find version '12.0.3' of package 'Newtonsoft.Json'.
Unable to find version '12.0.3' of package 'Newtonsoft.Json'.
Exception of type 'NuGet.CommandLineException' was thrown.
Oops, nuget restore exited with code 1 - let us try again!
Restoring NuGet package Newtonsoft.Json.12.0.3.
Using credentials from config. UserName: nuget
Using credentials from config. UserName: nuget
WARNING: Unable to find version '12.0.3' of package 'Newtonsoft.Json'.
Unable to find version '12.0.3' of package 'Newtonsoft.Json'.
Exception of type 'NuGet.CommandLineException' was thrown.
Oops, nuget restore exited with code 1 - let us try again!
Sorry, we tried restoring nuget packages for 3 times and all attempts were unsuccessful!
Command exited with code 1
Comments are currently closed for this discussion. You can start a new one.
Keyboard shortcuts
Generic
? | Show this help |
---|---|
ESC | Blurs the current field |
Comment Form
r | Focus the comment reply box |
---|---|
^ + ↩ | Submit the comment |
You can use Command ⌘
instead of Control ^
on Mac
1 Posted by scott on 11 Oct, 2020 02:07 PM
self resolved with
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/latest/nuget.exe
instead of a specific version:
- appveyor DownloadFile https://dist.nuget.org/win-x86-commandline/v3.2.0-rc/nuget.exe
scott closed this discussion on 11 Oct, 2020 02:07 PM.