I can build my branch locally without any problem but when I try to build in via team foundation i get 2 errors. The errors are generated on a project i recently added to the solution.
The errors are:
EnvoyClient.cs(3,7): error CS0246: The type or namespace name 'Newtonsoft' could not be found (are you missing a using directive or an assembly reference?) [c:\TF-Agents\Agent2017-002\_work\2\s\System\Envoy.Connector\Envoy.Connector.csproj]
EnvoyClient.cs(4,7): error CS0246: The type or namespace name 'RestSharp' could not be found (are you missing a using directive or an assembly reference?) [c:\TF-Agents\Agent2017-002\_work\2\s\System\Envoy.Connector\Envoy.Connector.csproj]
I have tried to remove the nuget packages and re-adding them in my local branch, and then pull requesting them again to the branch i want to build on tf-server, but to no avail.
the problem was the nuget packages were not being loaded in, because this project was not part of the solution
IIRC building this different solution was setup because we have a sync that does not need all the projects on the side that our main solution has. And building the big solution takes over 10 minutes. So we created a smaller solution just for the sync. And my nuget packages were loaded correctly, but because that project was missing he did not load them, and the subsequent build failed. But the restore nuget packages step worked like a charm