From 8e8d4de3b7c97cd340286c0b4dbec6c187283491 Mon Sep 17 00:00:00 2001 From: Barry Luijbregts Date: Mon, 25 Feb 2019 15:05:08 +0100 Subject: [PATCH 1/2] New changes that will make everything better --- HelloWordWriter/CompletelyNewClass.cs | 14 ++++++++++++++ HelloWordWriter/Program.cs | 11 ++++++++--- onlymyprojects.slnf | 9 +++++++++ 3 files changed, 31 insertions(+), 3 deletions(-) create mode 100644 HelloWordWriter/CompletelyNewClass.cs create mode 100644 onlymyprojects.slnf diff --git a/HelloWordWriter/CompletelyNewClass.cs b/HelloWordWriter/CompletelyNewClass.cs new file mode 100644 index 0000000..59e6c51 --- /dev/null +++ b/HelloWordWriter/CompletelyNewClass.cs @@ -0,0 +1,14 @@ +using System; +using System.Collections.Generic; +using System.Text; + +namespace HelloWorldWriter +{ + public static class CompletelyNewClass + { + public static string ReturnSomethingRandom() + { + return "Something random"; + } + } +} diff --git a/HelloWordWriter/Program.cs b/HelloWordWriter/Program.cs index 86cf4e8..578bb1b 100644 --- a/HelloWordWriter/Program.cs +++ b/HelloWordWriter/Program.cs @@ -1,4 +1,5 @@ -using SharedComponents; +using HelloWorldWriter; +using SharedComponents; using System; using System.Reflection; @@ -14,9 +15,13 @@ static void Main(string[] args) { Console.WriteLine(writer.GetHelloWorldString()); } - else + else if (writer.IsHelloJupiterString(Assembly.GetExecutingAssembly().FullName)) { - Console.WriteLine("Hello Generic World!"); + Console.WriteLine(writer.GetHelloJupiterString()); + } + else + { + Console.WriteLine(CompletelyNewClass.ReturnSomethingRandom()); } } } diff --git a/onlymyprojects.slnf b/onlymyprojects.slnf new file mode 100644 index 0000000..6c357cf --- /dev/null +++ b/onlymyprojects.slnf @@ -0,0 +1,9 @@ +{ + "solution": { + "path": "MyLargePluralsightSolution.sln", + "projects": [ + "HelloWordWriter\\HelloWorldWriter.csproj", + "SharedComponents\\SharedComponents.csproj" + ] + } +} \ No newline at end of file From 3676ffe094c18a0a7ee4bd441326eb8ded815cbd Mon Sep 17 00:00:00 2001 From: Barry Luijbregts Date: Mon, 25 Feb 2019 15:06:51 +0100 Subject: [PATCH 2/2] Revert "New changes that will make everything better" This reverts commit 8e8d4de3b7c97cd340286c0b4dbec6c187283491. --- HelloWordWriter/CompletelyNewClass.cs | 14 -------------- HelloWordWriter/Program.cs | 11 +++-------- onlymyprojects.slnf | 9 --------- 3 files changed, 3 insertions(+), 31 deletions(-) delete mode 100644 HelloWordWriter/CompletelyNewClass.cs delete mode 100644 onlymyprojects.slnf diff --git a/HelloWordWriter/CompletelyNewClass.cs b/HelloWordWriter/CompletelyNewClass.cs deleted file mode 100644 index 59e6c51..0000000 --- a/HelloWordWriter/CompletelyNewClass.cs +++ /dev/null @@ -1,14 +0,0 @@ -using System; -using System.Collections.Generic; -using System.Text; - -namespace HelloWorldWriter -{ - public static class CompletelyNewClass - { - public static string ReturnSomethingRandom() - { - return "Something random"; - } - } -} diff --git a/HelloWordWriter/Program.cs b/HelloWordWriter/Program.cs index 578bb1b..86cf4e8 100644 --- a/HelloWordWriter/Program.cs +++ b/HelloWordWriter/Program.cs @@ -1,5 +1,4 @@ -using HelloWorldWriter; -using SharedComponents; +using SharedComponents; using System; using System.Reflection; @@ -15,13 +14,9 @@ static void Main(string[] args) { Console.WriteLine(writer.GetHelloWorldString()); } - else if (writer.IsHelloJupiterString(Assembly.GetExecutingAssembly().FullName)) + else { - Console.WriteLine(writer.GetHelloJupiterString()); - } - else - { - Console.WriteLine(CompletelyNewClass.ReturnSomethingRandom()); + Console.WriteLine("Hello Generic World!"); } } } diff --git a/onlymyprojects.slnf b/onlymyprojects.slnf deleted file mode 100644 index 6c357cf..0000000 --- a/onlymyprojects.slnf +++ /dev/null @@ -1,9 +0,0 @@ -{ - "solution": { - "path": "MyLargePluralsightSolution.sln", - "projects": [ - "HelloWordWriter\\HelloWorldWriter.csproj", - "SharedComponents\\SharedComponents.csproj" - ] - } -} \ No newline at end of file