cleanup code, added version to commandline interface, updated MSTest nuget packages.

This commit is contained in:
2018-05-18 10:38:59 +02:00
parent cf4cc2cd93
commit 17e12093f8
10 changed files with 79 additions and 37 deletions

View File

@ -10,6 +10,7 @@ namespace KattekerCreator
private string _outputDir;
private string _programFile;
private string _publishDir;
private string _version;
[DisplayName("Program")]
[Description("Path to the program file")]
@ -51,6 +52,14 @@ namespace KattekerCreator
set => SetPropertyIfNotDefault(ref _publishDir, value);
}
[DisplayName("Version")]
[Description("Override version number of the application.")]
public string Version
{
get => _version;
set => SetPropertyIfNotDefault(ref _version, value);
}
private static bool SetPropertyIfNotDefault<T>(ref T field, T value)
{
if (Equals(value, field)) return false;