ConsoleApp app = ConsoleApp.Create(args);
app.AddCommands<TestCommand>();
app.Run();
public class TestCommand : ConsoleAppBase
{
public int Execute(string message)
{
Console.WriteLine(message);
return 0;
}
}
If I execute this application with the following parameter ' execute --message "$(Message)" ', the parameter 'message' is an empty string. It seems passing a argument in the format "$(Something)" will handled in a special way, but I want just the raw string, so in my testcase "$(Parameter)". Is that possible?
I have the following app:
If I execute this application with the following parameter ' execute --message "$(Message)" ', the parameter 'message' is an empty string. It seems passing a argument in the format "$(Something)" will handled in a special way, but I want just the raw string, so in my testcase "$(Parameter)". Is that possible?