I'm trying to get the ProjectSiteUrl included/initialized when I retrieve all projects.
Similar to how the Sharepoint CSOM can query lists. Eg:
ListCollection lists = site.Lists; IEnumerable<SP.List> listsCollection = context.LoadQuery(lists.Include(l => l.Id, l => l.Title, l => l.AnotherField));
In the CSOM for Project Server 2013, if I have an individual project I can do this:
PublishedProject pubProject = context.Projects.GetById(uniqueId); context.Load(pubProject, p => p.Id, p => p.Name, p => p.ProjectSiteUrl);
Also with JSOM for Project Server 2013, in a sample (that comes with the Projects SDK) I see you can do this:
projects = projContext.get_projects(); projContext.load(projects, 'Include(Id, Name, ProjectSiteUrl)');
Which makes me think I can do this for Projects CSOM. How do I do this with the CSOM for a ProjectCollection?
Could this be related to not being able to use CamlQuery in Projects CSOM? (I've tried and not been able to)