The attributes [InputPort]
and [OutputPort]
should only be used inside classes marked with the [Program]
attribute.
You can also use the provided automatic Code Fix to remove the attribute. ( Press Alt + Enter on the Error line to find the Code Fix in the context menu)
Remove the attribute.