static void Start(string productId, string callHomeUrl) { Perform(() => { var location = Assembly.GetExecutingAssembly().Location; var filePath = Path.GetDirectoryName(location); var fvi = VersionInfo.FetchVersionInfo(); var productVersion = fvi; TBConfig.SetFilePath(filePath); TBConfig.CreateConfig(callHomeUrl, productId, productVersion, productVersion, false); return(TBApp.Start()); }); }
// ReSharper disable UnusedMember.Local 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 TBConfig.SetFilePath(filePath); TBConfig.CreateConfig(callHomeUrl, productId, productVersion, productVersion, false); return(TBApp.Start()); }); }