Path too long for MSBuild

Ranorex Studio, Spy, Recorder, and Driver.
CWhiting
Posts: 26
Joined: Thu Mar 08, 2018 9:32 pm

Path too long for MSBuild

Post by CWhiting » Fri Sep 23, 2022 6:50 pm

I have 2 systems on Ranorex 10.2.2 with the same project and supposedly the same settings. When I do a package restore on one, no issues occur. On the other I get the following error. I just re-installed Ranorex 10.2.2 and the project from source control. The same error is still occurring. The command string to MSBuild is indeed long but that is supposed be handled. What am I missing?

"C:\Program Files (x86)\Ranorex\Studio\Bin\AddIns\Misc\PackageManagement\NuGet.exe" restore "QMSQA91.sln"
MSBuild auto-detection: using msbuild version '15.9.21.664' from 'C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\bin'.
The specified path, file name, or both are too long. The fully qualified file name must be less than 260 characters, and the directory name must be less than 248 characters.
Exit code 1