I have same error, and that is related with 'file name must be less than 260 characters' and resolved by Enabling Windows Long Path :
1- Click Window key and type gpedit.msc, then press the Enter key. This launches the Local Group Policy Editor.
2- Navigate to Local Computer Policy > Computer Configuration > Administrative Templates > System > Filesystem.
3- Double click Enable NTFS long paths.
4- Select Enabled, then click OK.
5- at last restart visual studio