在将源设置为TeamCity的NuGet服务器时,在NuGet Install构建步骤中收到以下错误:
如果将源字段留空,它将从默认源(NuGet社区源)查找NuGet包,但不会查找在TC的NuGet源中构建和打包的本地包。
如何在NuGet安装程序构建步骤中同时使用默认源和内部TC的NuGet源?
Step 1/4: NuGet install (NuGet Installer) (3s)
[15:11:19][Step 1/4] scan: Searching for nuget.config files
[15:11:19][Step 1/4] install: Installing NuGet packages for packages.config (3s)
[15:11:19][install] NuGet command: C:\TeamCity\buildAgent\tools\NuGet.CommandLine.2.2.0.nupkg\tools\NuGet.exe install C:\TeamCity\buildAgent\work\a4b9de5be22a981\packages.config -OutputDirectory C:\TeamCity\buildAgent\work\a4b9de5be22a981\packages -Source http://localhost:9090/guestAuth/app/nuget/v1/FeedService.svc
[15:11:19][install] Starting: C:\TeamCity\buildAgent\temp\agentTmp\custom_script96367186180319830.cmd
[15:11:19][install] in directory: C:\TeamCity\buildAgent\work\a4b9de5be22a981
[15:11:22][install] The remote server returned an error: (404) Not Found.
[15:11:22][install] Process exited with code 1
[15:11:22][Step 1/4] Step NuGet install (NuGet Installer) failed
如果将源字段留空,它将从默认源(NuGet社区源)查找NuGet包,但不会查找在TC的NuGet源中构建和打包的本地包。
如何在NuGet安装程序构建步骤中同时使用默认源和内部TC的NuGet源?