I found the answer to my question. I changed ‘C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.FallbackLocation.config’ and ‘C:\Program Files (x86)\NuGet\Config\Microsoft.VisualStudio.Offline.config’ files to ‘Z:...’ When I build, this time I got an error for the directory ‘Z:\Program Files (x86)\Microsoft Visual Studio\Shared\NuGetPackages’. ‘...\Shared\NuGetPackages\’ I created this directory manually and the problem was solved.