ChatGPT offered me some other suggestions that finally worked - I closed Visual Studio, emptied the bin and obj folders, and reopened the project. Then I switched everything over to the Assembly references and not the COM references, using Assemblies > "office" (15.0.0.0). That finally resolved the error and let me build and publish the project.