public IActionResult GetVersions() { IActionResult result; Versions response = new Versions(); response.BuildNumber = VersionsHelper.GetCurrentAssemblyVersions(true)?.Item2; // Use full version with pre-release suffix #if DEBUG foreach (Tuple <string, string> nameVersionPair in VersionsHelper.GetAssemblyVersions(null, true)) #else foreach (Tuple <string, string> nameVersionPair in VersionsHelper.GetAssemblyVersions()) #endif { VersionComponent component = new VersionComponent(); component.Name = nameVersionPair.Item1; component.Version = nameVersionPair.Item2; if (response.Components == null) { response.Components = new List <VersionComponent>(); } response.Components.Add(component); } result = Request.GetObjectResult(response); return(result); }
public void UpdateSolution_IncrementSolutionVersion_FromPart0() { DateTime now = new DateTime(2020, 10, 2, 15, 30, 0); string version = VersionsHelper.IncrementSolutionVersion("9", now); Assert.IsNotNull(version); Assert.AreEqual("9.0.201002.1530", version); }
public void UpdateSolution_IncrementSolutionVersion_ReplaceDateTime() { DateTime now = new DateTime(2020, 10, 2, 15, 30, 0); string version = VersionsHelper.IncrementSolutionVersion("8.2.191224.0930", now); Assert.IsNotNull(version); Assert.AreEqual("8.2.201002.1530", version); }
private static void Willkommen() { Meldung(@"██╗ ██╗ █████╗ ██╗ ██╗███████╗██╗ ██╗ █████╗ ██╗ ████████╗███████╗██████╗ ██╗ ██╗ ██████╗██╗ ██╗"); Meldung(@"██║ ██║██╔══██╗██║ ██║██╔════╝██║ ██║██╔══██╗██║ ╚══██╔══╝██╔════╝██╔══██╗██║ ██║██╔════╝██║ ██║"); Meldung(@"███████║███████║██║ ██║███████╗███████║███████║██║ ██║ ███████╗██████╔╝██║ ██║██║ ███████║"); Meldung(@"██╔══██║██╔══██║██║ ██║╚════██║██╔══██║██╔══██║██║ ██║ ╚════██║██╔══██╗██║ ██║██║ ██╔══██║"); Meldung(@"██║ ██║██║ ██║╚██████╔╝███████║██║ ██║██║ ██║███████╗██║ ███████║██████╔╝╚██████╔╝╚██████╗██║ ██║"); Meldung($"╚═╝ ╚═╝╚═╝ ╚═╝ ╚═════╝ ╚══════╝╚═╝ ╚═╝╚═╝ ╚═╝╚══════╝╚═╝ ╚══════╝╚═════╝ ╚═════╝ ╚═════╝╚═╝ ╚═╝ v{VersionsHelper.GetVersionsnummer(Assembly.GetAssembly(typeof(Programm)))}"); Leerzeile(); //Aufrufmoeglichkeiten(); }
public void UpdateJS_ContainsExtension() { bool isJsFile = VersionsHelper.IsFileExtensionSomeOf("test.js", new[] { "js" }); Assert.IsTrue(isJsFile); }