static void Start(string productId, string callHomeUrl)
// ReSharper restore UnusedMember.Local
{
Perform(() =>
{
var location = Assembly.GetExecutingAssembly().Location;
var filePath = Path.GetDirectoryName(location);
#if ! DEBUG && ! TEST
var fvi = VersionInfo.FetchVersionInfo();
var productVersion = fvi;
#else
// ReSharper disable ConvertToConstant.Local
var productVersion = "0.0.9999.0";
// ReSharper restore ConvertToConstant.Local
#endif
if (AppSettings.CollectUsageStats)
{
TBConfig.SetFilePath(filePath);
TBConfig.CreateConfig(callHomeUrl, productId, productVersion, productVersion, false);
return TBApp.Start();
}
return GenericReturn.OK;
});
}