Quantcast
Channel: Active questions tagged nuget-package - Stack Overflow
Viewing all articles
Browse latest Browse all 3067

How to add nuget package for offline tfs build task

$
0
0

I have an TFS build server without internet access. There is a build definition with Nuget Restore step. It's configured as I understand to take package from Destination directory folder:

enter image description here

At least all old packages is at this folder.

I have to add some new packages, but when I add it to this folder build process doesn't find them:

2024-03-25T01:17:13.1908678Z Restoring NuGet package System.Text.Json.5.0.0.2024-03-25T01:17:13.1908678Z Restoring NuGet package System.Text.Encodings.Web.5.0.0.2024-03-25T01:17:13.1918682Z Restoring NuGet package System.Runtime.CompilerServices.Unsafe.5.0.0.2024-03-25T01:17:13.1928680Z Restoring NuGet package System.Buffers.4.5.1.2024-03-25T01:17:13.2258701Z Missing $(NuGetRestorePath)\.nuget\packages\system.text.json\5.0.0\system.text.json.nuspec2024-03-25T01:17:13.2258701Z Missing $(NuGetRestorePath)\.nuget\packages\system.buffers\4.5.1\system.buffers.nuspec2024-03-25T01:17:13.2268678Z Missing $(NuGetRestorePath)\.nuget\packages\microsoft.bcl.asyncinterfaces\5.0.0\microsoft.bcl.asyncinterfaces.nuspec2024-03-25T01:17:13.2268678Z Missing $(NuGetRestorePath)\.nuget\packages\system.numerics.vectors\4.5.0\system.numerics.vectors.nuspec2024-03-25T01:17:13.2278699Z Missing $(NuGetRestorePath)\.nuget\packages\system.text.encodings.web\5.0.0\system.text.encodings.web.nuspec2024-03-25T01:17:13.2288692Z Missing $(NuGetRestorePath)\.nuget\packages\system.runtime.compilerservices.unsafe\5.0.0\system.runtime.compilerservices.unsafe.nuspec2024-03-25T01:17:13.2308680Z Missing $(NuGetRestorePath)\.nuget\packages\system.memory\4.5.4\system.memory.nuspec2024-03-25T01:17:13.2318684Z Restoring NuGet package System.Threading.Tasks.Extensions.4.5.4.2024-03-25T01:17:13.2318684Z Missing $(NuGetRestorePath)\.nuget\packages\system.threading.tasks.extensions\4.5.4\system.threading.tasks.extensions.nuspec2024-03-25T01:19:19.3462514Z WARNING: Unable to find version '4.5.0' of package 'System.Numerics.Vectors'.2024-03-25T01:19:19.3462514Z   $(NuGetRestorePath)\.nuget\packages\: Package 'System.Numerics.Vectors.4.5.0' is not found on source '$(NuGetRestorePath)\.nuget\packages\'.2024-03-25T01:19:19.3462514Z   https://api.nuget.org/v3/index.json: Unable to load the service index for source https://api.nuget.org/v3/index.json.2024-03-25T01:19:19.3462514Z   An error occurred while sending the request.2024-03-25T01:19:19.3462514Z   Unable to connect to the remote server2024-03-25T01:19:19.3462514Z   A connection attempt failed because the connected party did not properly respond after a period of time, or established connection failed because connected host has failed to respond 13.107.246.67:4432024-03-25T01:19:19.3462514Z 

How I must to add packages at this case? Maybe I must to register it anywhere? Or .nuspec file is necessary? If so how I can make it?


Viewing all articles
Browse latest Browse all 3067

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>