diff --git a/CLARA.Shared/CLARA.Shared.csproj b/CLARA.Shared/CLARA.Shared.csproj new file mode 100644 index 0000000..d2a210c --- /dev/null +++ b/CLARA.Shared/CLARA.Shared.csproj @@ -0,0 +1,7 @@ + + + + netstandard2.0 + + + diff --git a/CLARA.Shared/Utils.cs b/CLARA.Shared/Utils.cs new file mode 100644 index 0000000..83a35c6 --- /dev/null +++ b/CLARA.Shared/Utils.cs @@ -0,0 +1,20 @@ +using System; + +namespace CLARA.Shared +{ + public static class Utils + { + public static string ToHex(this byte number) + { + return ((long)number).ToHex(2); + } + public static string ToHex(this int number, byte digits = 4) + { + return ((long)number).ToHex(digits); + } + public static string ToHex(this long number, byte digits = 4) + { + return string.Concat("#", Convert.ToInt64(number).ToString(string.Concat("X", digits.ToString()))); + } + } +} diff --git a/CLARA.sln b/CLARA.sln index 26b5206..e4b70d6 100644 --- a/CLARA.sln +++ b/CLARA.sln @@ -1,6 +1,8 @@  Microsoft Visual Studio Solution File, Format Version 12.00 -Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CLARA", "CLARA.csproj", "{7CC0A448-F2F9-4C2E-A7F9-C7A267DEFDF9}" +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CLARA.Shared", "CLARA.Shared\CLARA.Shared.csproj", "{E66F3601-A1A7-4543-B933-E63AFF50BB50}" +EndProject +Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "CLARA", "CLARA\CLARA.csproj", "{81B95826-F1A6-487C-A373-FED4F7D15F2C}" EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution @@ -8,9 +10,13 @@ Global Release|Any CPU = Release|Any CPU EndGlobalSection GlobalSection(ProjectConfigurationPlatforms) = postSolution - {7CC0A448-F2F9-4C2E-A7F9-C7A267DEFDF9}.Debug|Any CPU.ActiveCfg = Debug|Any CPU - {7CC0A448-F2F9-4C2E-A7F9-C7A267DEFDF9}.Debug|Any CPU.Build.0 = Debug|Any CPU - {7CC0A448-F2F9-4C2E-A7F9-C7A267DEFDF9}.Release|Any CPU.ActiveCfg = Release|Any CPU - {7CC0A448-F2F9-4C2E-A7F9-C7A267DEFDF9}.Release|Any CPU.Build.0 = Release|Any CPU + {E66F3601-A1A7-4543-B933-E63AFF50BB50}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {E66F3601-A1A7-4543-B933-E63AFF50BB50}.Debug|Any CPU.Build.0 = Debug|Any CPU + {E66F3601-A1A7-4543-B933-E63AFF50BB50}.Release|Any CPU.ActiveCfg = Release|Any CPU + {E66F3601-A1A7-4543-B933-E63AFF50BB50}.Release|Any CPU.Build.0 = Release|Any CPU + {81B95826-F1A6-487C-A373-FED4F7D15F2C}.Debug|Any CPU.ActiveCfg = Debug|Any CPU + {81B95826-F1A6-487C-A373-FED4F7D15F2C}.Debug|Any CPU.Build.0 = Debug|Any CPU + {81B95826-F1A6-487C-A373-FED4F7D15F2C}.Release|Any CPU.ActiveCfg = Release|Any CPU + {81B95826-F1A6-487C-A373-FED4F7D15F2C}.Release|Any CPU.Build.0 = Release|Any CPU EndGlobalSection EndGlobal diff --git a/CLARA.csproj b/CLARA/CLARA.csproj similarity index 71% rename from CLARA.csproj rename to CLARA/CLARA.csproj index 2f4fc77..0a89cfc 100644 --- a/CLARA.csproj +++ b/CLARA/CLARA.csproj @@ -7,4 +7,8 @@ enable + + + + diff --git a/Program.cs b/CLARA/Program.cs similarity index 51% rename from Program.cs rename to CLARA/Program.cs index c3fe3dd..795260c 100644 --- a/Program.cs +++ b/CLARA/Program.cs @@ -1,8 +1,10 @@ -namespace CLARA; +using CLARA.Shared; -internal static class Program +namespace CLARA; + +class Program { - private static void Main(string[] args) + static void Main(string[] args) { Console.WriteLine("Composable Logical Architecture for Retro Applications"); } diff --git a/global.json b/global.json deleted file mode 100644 index 2ddda36..0000000 --- a/global.json +++ /dev/null @@ -1,7 +0,0 @@ -{ - "sdk": { - "version": "8.0.0", - "rollForward": "latestMinor", - "allowPrerelease": false - } -} \ No newline at end of file