PublishProject consumes an additional license at each call

Hi,

it seems that the PublishProject method on FileBasedProject in the studio desktop API consumes an additional Project Server license at each and every call.

So if we publish several projects after each other, then we may quickly run out of licenses.

There is a minimal repro as well (standalone application, so not a plugin inside Studio):

   var fbp = new FileBasedProject(@"d:\_todelete\Project 1\Project 1.sdlproj");
   fbp.PublishProject(new Uri("">https://SERVER"), false, "USER", "PASS", "/", (sender, args) => { });  // 1 license consumed
   fbp = new FileBasedProject(@"d:\_todelete\Project 2\Project 2.sdlproj");
   fbp.PublishProject(new Uri("https://SERVER"), false, "USER", "PASS", "/", (sender, args) => { });  // +1 license consumed

(Studio 17.2.9.18688)

Is this a known issue / is there a workaround for this?

thank you,

Tamas