• This one is a little newer and might be worth a try. I haven't found one without bugs, they've all just had different ones. And if you're on a home laptop, Windows 10 updates and those issues aren't helping:
    Download SQL Server Data Tools (SSDT)

    The last time I got that same error it was me not setting it right in configuration manager that you have to change for deploying. From memory, in configuration manager go to the build tab and select Deploy option. I think that's what it was. But usually for normal people, it ends up being something with the TargetServerURL so double check that setting.

    Sue