I Was searching for ways to get the information and methods of the Team Development Section of Genexus using the SDK, things like:
- Get the name of the KB that is hosted on Genexus Server (not the name that I put when the KB was downloaded from the server)
- Get Changeset info
- Trigger Commit on Changesets
- Trigger Full Update on the current KB
I found out some classes inside the "Artech.Packages.TeamDevClient..." DLLs, but those did not come with the SDK Installation, I found those DLLs inside my Genexus 16 Installation Folder (inside ./Packages), so I'm not sure if I should use it. So my questions are:
Whithin the SDK Envinronment, can I get the information of the Team Dev Section of Genexus? for things like changesets, Genexus Server KB Name...
Can I Trigger Genexus Server Events like commits, updates and locks?
Edit:
In order to execute those operations, we obviously need to be connected to a GX Server Instance, therefore, if the Genexus Server Credentials were not set, it wont work.
That being said, how do I properly set (and get) those configurations programmatically?
I was digging up a bit on the classes and found this TeamDevelopmentData
from Artech.Architecture.Common.Services.TeamDevData.Client
, it has and overload to accept a Working Model, so I tried the following (with my genexus server credentials already configured in the Team Development Section):
TeamDevelopmentData teamDevData = new TeamDevelopmentData(UIServices.KB.CurrentModel);
foreach (PropertyDescriptor descriptor in TypeDescriptor.GetProperties(teamDevData))
{
string name = descriptor.Name;
object value = descriptor.GetValue(teamDevData);
CommonServices.Output.AddLine(name+" = "+ value);
}
The result is that teamDevData
properties are null
. How do I properly use it?