我在我们的项目的VSTS中创建了一个构建定义。 在的NuGet安装步骤我注明:NuGet省略了一些软件包,但手动恢复它们通过项目通过VS2017取得成功
Path to solution or packages.config: DirectoryName/AppServer/.nuget/NuGet.Config
Path to NuGet.config: DirectoryName/AppServer/.nuget/NuGet.Config
Installation type: Restore
NuGet arguments: -PackagesDirectory DirectoryName\SDK\NuGet\packages
NuGet Version: 3.3.0
当我运行构建执行,我得到的信息在控制台上:
2017-07-31T11:39:10.2496191Z ##[section]Starting: NuGet restore DirectoryName/AppServer/AppServer.sln
2017-07-31T11:39:10.2808709Z ==============================================================================
2017-07-31T11:39:10.2808709Z Task : NuGet Installer
2017-07-31T11:39:10.2808709Z Description : Installs or restores missing NuGet packages
2017-07-31T11:39:10.2808709Z Version : 0.2.31
2017-07-31T11:39:10.2808709Z Author : Microsoft Corporation
2017-07-31T11:39:10.2808709Z Help : [More Information](https://go.microsoft.com/fwlink/?LinkID=613747)
它恢复了很多包,但有些没有恢复。没有错误引发,没有警告,他们只是省略,并导致生成解决方案任务失败。
但是,当我登录到虚拟机(Azure)并在Visual Studio 2017中打开解决方案并逐个单击其中的每个项目并右键单击它时,然后恢复NuGet包,所有内容均成功下载。然后构建定义执行是成功的,条件是我在获取源代码步骤中将Clean设置为false。
您能否在此发布详细记录?另一方面,你说路径解决方案或packages.config:DirectoryName/AppServer/.nuget/NuGet.Config,它是解决方案或packages.config,你有错误吗? –
如果您在解决方案的路径或packages.config中指定解决方案,结果如何? –
另一方面,有.nuget文件夹,你是否将vs2013项目升级到vs 2017? –