Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions src/Task/AggregateConfig.cs
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public override bool Execute()

OutputFile = Path.GetFullPath(OutputFile);

if (!Enum.TryParse(OutputType, out OutputTypeEnum outputType) ||
if (!Enum.TryParse(OutputType, true, out OutputTypeEnum outputType) ||
!Enum.IsDefined(typeof(OutputTypeEnum), outputType))
{
Log.LogError("Invalid OutputType: {0}. Available options: {1}", OutputType, string.Join(", ", Enum.GetNames(typeof(OutputTypeEnum))));
Expand All @@ -57,7 +57,7 @@ public override bool Execute()

InputTypeEnum inputType = InputTypeEnum.Yaml;
if (!string.IsNullOrEmpty(InputType) &&
(!Enum.TryParse(InputType, out inputType) || !Enum.IsDefined(typeof(InputTypeEnum), inputType)))
(!Enum.TryParse(InputType, true, out inputType) || !Enum.IsDefined(typeof(InputTypeEnum), inputType)))
{
Log.LogError("Invalid InputType: {0}. Available options: {1}", InputType, string.Join(", ", Enum.GetNames(typeof(InputTypeEnum))));
return false;
Expand Down