I have a tool that is going to open a MS Project file off the Project Web App (PWA/Project Server). and make some changes. I then need to save the file and publish the changes before closing it and checking it it. Project Server has issues when a file is checked in before the publish process is complete. I'm trying to find something in the API that will indicate when the publish is complete but I can't find anything.
Is there any way I can programmatically tell when the publish to Project Server is complete?
I've attempted to call the Application.Publish method before the Application.FileCloseEx(PjSaveType.pjDoNotSave, CheckIn: true) method but the FileCloseEx method will execute before the publish is complete in my tests
Maybe something in the CSOM library can access the Project Server's queued jobs?
Figured out a way to do this by using the CSOM NuGet package: