I have the same problem - Unrecognized command or argument 'C#' after Add-Migration command.
Problem on newest VS 2022 (17.7). Problem also starts after update VS2019 to newest version 16.11.29 (before update everything was working great on VS2019).
Everything works on different machine with VS2019 16.11.27