I'm looking for a way to build our onpremises (both 2013 and 2016) solutions in our Visual Studio Online repository.
I set up a standard .Net desktop build to build our solutions on a hosted VS 2017 which states to have Office tools installed.
However, the build fails with all SharePoint objects that are not found:
Error CS0234: The type or namespace name 'SharePoint' does not exist in the namespace 'Microsoft' (are you missing an assembly reference?)
All articles I've red are explaining how to do that in old versions of TFS.
How to fix my build ?
Is it possible with hosted VS 2017 agents?
Is there a way to put additional DLLs in the build (which are normally referenced from the GAC of the dev computer) ?