In this c# example, the formula that returns the target value is in the Cells[4,2], the value to be adjusted is in Cells[3,5] and the target value is zero. I tried it in VS 2019 and it worked.
((Range)rgout.Cells[4, 2]).GoalSeek(0, rgout.Cells[3,5]);