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