Still running into issues to add TMs and publish a project on server using API

1) We are using template to create automated sdl project. We are able to create the project using the FileBasedProject Class but in the project created the translation memories are not mapped properly. 
I have attached screen shot, one created from SDL using the same template(starts with the name SDL) and other created from our project.
The code that we are using for adding TM is:
var tmProviderConfig = project.GetTranslationProviderConfiguration();
foreach (var item in project.GetProjectInfo().TargetLanguages)
{                project.AddMasterTM(project.GetTranslationProviderConfiguration(), item.IsoAbbreviation);        
}
2. We are unable to publish the project to the group share server.
I have attached the server log for this.
Parents Reply Children