This project is read-only.
1
Vote

Change to UpdateSettings for TFS2010 collections

description

For TFS2010 MainForm.UpdateSettings needs to be changed to:
private void UpdateSettings()
{
  _converterSettings.ConverterSpecificSetting.Source.VSSDatabase.name = cbVSSDatabasePath.Text;
  try
  {
    Uri uri = new Uri(cbTFSServer.Text);
    _converterSettings.Settings.TeamFoundationServer.name = uri.Host;
    _converterSettings.Settings.TeamFoundationServer.port = uri.Port;
    _converterSettings.Settings.TeamFoundationServer.protocol = uri.Scheme;
            _converterSettings.Settings.TeamFoundationServer.collection = uri.AbsolutePath;
  }
  catch
  {
    _converterSettings.Settings.TeamFoundationServer.name = "";
    _converterSettings.Settings.TeamFoundationServer.port = -1;
    _converterSettings.Settings.TeamFoundationServer.protocol = "";
    _converterSettings.Settings.TeamFoundationServer.collection = "";
  }
...

comments