A set of technologies in the .NET Framework for building web applications and XML web services.
I found the solution, described here on Stack Overflow: https://stackoverflow.com/questions/65281107/visual-studio-2019-illegal-characters-in-path
The problem I had was that there was an empty entry in my user PATH. (Shown in the ‘Environment Variables’ dialog as one entry starting with a ‘;’ semicolon). I fixed that, quit Visual Studio and started it again (restarting it didn’t work), and then the problem went away.