Hello @Brendan Hauk ,
Welcome to Microsoft Q&A forum.
Did you install something(like extensions, some packages, assemblies…), remove something or modify something before this error appeared?
Perhaps VS loaded the incorrect assembly due to something changed and lead to this error. Removing some cache files/folders may work, but it’s hard to know what cache needs to clean as it depends on the changes. If you still remember what have changed, please let us know.
I suggest try following currently:
- Rename
ComponentModelCache
folder inC:\Users\username\AppData\Local\Microsoft\VisualStudio\17.0_XXXXXXXX
folder. - Navigate to
%windir%\Microsoft.NET\assembly\GAC_MSIL
folder(Global Assembly Cache), check if theMicrosoft.SqlServer.TransactSql.ScriptDom
assembly exists. If it doesn’t exist, try to install it by downloading it from here(click the Download package option to download it) => rename the .nupkg file to .zip, open it and search for the assembly file(Microsoft.SqlServer.TransactSql.ScriptDom.dll) => follow this document: Install an assembly into the global assembly cache to install it to GAC. If it exists, try to uninstall it from GAC(Remove an Assembly from the Global Assembly Cache).
Sincerely,
Tianyu
If the answer is the right solution, please click "Accept Answer" and kindly upvote it. If you have extra questions about this answer, please click "Comment".
Note: Please follow the steps in our documentation to enable e-mail notifications if you want to receive the related email notification for this thread.