diff --git a/Wiring-Console.Waterworks.Core-into-Your-Project.md b/Wiring-Console.Waterworks.Core-into-Your-Project.md index 8228705..cc5bb13 100644 --- a/Wiring-Console.Waterworks.Core-into-Your-Project.md +++ b/Wiring-Console.Waterworks.Core-into-Your-Project.md @@ -45,7 +45,7 @@ The first thing you need to do is make sure the `ConsoleCommands` class is marke ```c# public static string Test() { - return "ConsoleCommands is working." + return "Test complete." } ``` @@ -61,7 +61,7 @@ namespace CW_Core_Console // This will be different to yours. { public static string Test() { - return "ConsoleCommands is working." + return "Test complete." } } } @@ -69,12 +69,18 @@ namespace CW_Core_Console // This will be different to yours. If all has gone well, your program should run (press F5) and when you enter "Test" into the console, you should see something similar to the image below. -![successful c.w.c. set-up screenshot](attachments/successful-console-set-up.png) +![successful c.w.c. set-up screenshot](attachments/method-mapping.gif) -Within the `Main` function is a method called `Run`, which takes two arguments. The first is the name-space of the `ConsoleCommands` class and the second one is a `bool`. In the example above, I have used `true` but I could have used `false` if I wanted. The reason I used `true` is because I prefer my console programs to display its assembly information when I run it. If you prefer just the prompt, change the `true` variable to `false`. If all has gone well, you should see something similar to the screenshot below. +Within the `Main` function is a method called `Run`, which takes two arguments. The first is the name-space of the `ConsoleCommands` class and the second one is a `bool`. In the example above, I have used `true` but I could have used `false` if I wanted. The reason I used `true` is because I prefer my console programs to display its assembly information when I run it. If you prefer just the prompt, change the `true` variable to `false`. If all has gone well, you should see something similar to the screenshots below. + +**Console program, displaying its assembly information.** ![assembly info screenshot](attachments/assembly-info-screenshot.png) +**Console program, displaying just the prompt.** + +![no assembly info screenshot](attachments/no-assembly-info-screenshot.png) + I will not go into too much detail about changing a project's assembly information because there is already an amble amount of information on the subject. Instead, I will provide the following links to get to started: - [Setting Assembly Attributes](https://docs.microsoft.com/en-us/dotnet/framework/app-domains/set-assembly-attributes): This applies to the traditional and Core versions of .Net. It provides information on what resides in Assembly Information manifests and files. diff --git a/attachments/assembly-info-screenshot.png b/attachments/assembly-info-screenshot.png new file mode 100644 index 0000000..4c0c2ff Binary files /dev/null and b/attachments/assembly-info-screenshot.png differ diff --git a/attachments/method_mapping.gif b/attachments/method_mapping.gif new file mode 100644 index 0000000..ac55709 Binary files /dev/null and b/attachments/method_mapping.gif differ diff --git a/attachments/no-assembly-info-screenshot.png b/attachments/no-assembly-info-screenshot.png new file mode 100644 index 0000000..80a6b6b Binary files /dev/null and b/attachments/no-assembly-info-screenshot.png differ