.NET 6 quality of life changes to Tomas.Common

- Split and simplified version details
- Raw commit hash is now a build number based on that hash
This commit is contained in:
Tony Bark 2023-01-06 20:39:31 -05:00
parent 69fcc9c776
commit a029d8d4d9
13 changed files with 81 additions and 79 deletions

View file

@ -1,7 +1,5 @@
// I license this project under the BSD 3-Clause license.
// See the LICENSE file in the project root for more information.
using System;
using System.IO;
using Cosmos.System.FileSystem;
using Cosmos.System.FileSystem.VFS;
using Tomas.Common;
@ -23,7 +21,7 @@ class TomFS
Console.WriteLine("Creating system files.");
fs.CreateFile($"{SYSTEM_DIR}sysinfo.txt");
Console.WriteLine("Setting system preferences.");
File.WriteAllText($"{SYSTEM_DIR}sysinfo.txt", $"{ComConsts.NAME}, {ComConsts.VersionGit}");
File.WriteAllText($"{SYSTEM_DIR}sysinfo.txt", $"{ComConsts.NAME}, {ComConsts.BuildNumber}");
Console.WriteLine("File system loaded sucesfully.");
var intro = File.ReadAllText($"{SYSTEM_DIR}sysinfo.txt");
Console.WriteLine(intro);