add images to Wiring C.W.C. into Your Proj.

master
Craig Oates 5 years ago
parent
commit
8aa7e013bb
  1. 14
      Wiring-Console.Waterworks.Core-into-Your-Project.md
  2. BIN
      attachments/assembly-info-screenshot.png
  3. BIN
      attachments/method_mapping.gif
  4. BIN
      attachments/no-assembly-info-screenshot.png

14
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.

BIN
attachments/assembly-info-screenshot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 230 KiB

BIN
attachments/method_mapping.gif

Binary file not shown.

After

Width:  |  Height:  |  Size: 23 KiB

BIN
attachments/no-assembly-info-screenshot.png

Binary file not shown.

After

Width:  |  Height:  |  Size: 197 KiB

Loading…
Cancel
Save