ERROR: Visual Studio 2019 must be installed to build this target

If my guess was correct, then yes. But it may break dependencies in your project. Do you have such a plugin?