We have a developer with a similar issue to the one linked below:
Build/Publish .NET Core 3.x application with TFS 2018 Update 3.2
We have .NET core 3.1.101 installed on the build server, but when running the build using the .NET Core Installer Tool step, it is not picking up cached versions. It keeps trying to install from the internet, which is not allowed.
Does anyone know the $(Agent.ToolsDirectory)location for TFS build agent on Windows? (We are on TFS 2018)
NOTE: We have placed the 3.1.101 folder in a few locations trying to test. For example, we placed it in the "E:\agent\buildAgentName_work_tool\dotnet" location. *We created the dotnet folder name.
Any thoughts?
EDIT: More log info...
Tool to install: .NET Core sdk version 3.1.1.
Checking if a cached copy exists for this version...
Cache does not contains this particular .NET Core. Will be downloaded and installed.
...
[error]Failed to download .NET Core package. Please ensure that .NET Core sdk of version 3.1.1 exists. Check out: https://github.com/dotnet/core/blob/master/release-notes/releases.csv
AND screen of step being used in TFS: