0
votes

Trying to migrate from XAML deployment to VSTS CI & CD. Can't get past this build failure:


Starting: NuGet restore **\DFWSPFWebsite*.sln

******************************************************************************

Task : NuGet Installer Description : Installs or restores missing NuGet packages Version : 0.2.29 Author : Microsoft Corporation

Help : More Information

C:\Windows\system32\chcp.com 65001 Active code page: 65001 Error: No matching files were found with search pattern: D:\a\1\s***.sln Packages failed to install


Finishing: NuGet restore **\DFWSPFWebsite*.sln


2

2 Answers

0
votes

I was able to make VSTS Build find my NuGet packages with guidance from @Marina and these additional settings:

Path to solution or packages.config = **\DFWSPFWebsite\DFWSPFWebsite\packages.config

Disable local cache = true

NuGet arguments = -PackagesDirectory $(build.sourcesDirectory)\DFWSPFWebsite\DFWSPFWebsite\

Also, make sure the NuGet Version is correct.

0
votes

First please check if you have the solutions match DFWSPFWebsite*.sln in your project.

If you want to select packages.config, just select packages.config for Path to solution or packages.config as below pictures. So you should use DFWSPFWebsite/DFWSPFWebsite/packages.config instead of **\DFWSPFWebsite\DFWSPFWebsite\packages.config in your configuration.

enter image description here

second