cleanup code, added version to commandline interface, updated MSTest nuget packages.
This commit is contained in:
@ -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;
|
||||
|
Reference in New Issue
Block a user