显然,你不能依赖基于 SQL Server Management Studio 的“msvsmon.exe”安装:
在我的计算机上安装了 Visual Studio,因此我可以找到“msvsmon.exe”:
C:\>dir /S /B msvsmon.exe
C:\...\Microsoft Visual Studio\2017\...\Common7\IDE\Remote Debugger\x86\msvsmon.exe
资源库:
C:\>dir /S /B vsdebugeng.impl.resources.dll
C:\...\Microsoft Visual Studio\2017\...\Common7\IDE\Remote Debugger\x86\1033\vsdebugeng.impl.resources.dll
换句话说:“1033”(英语区域设置)目录存储在“x86”目录下,可以在其中找到“msvsmon.exe”。
在远程计算机上,“msvsmon.exe”安装在 SQL Server Management Studio 下,它具有另一种结构(这是错误的):
C:\>dir /S /B msvsmon.exe
C:\...\Microsoft SQL Server Management Studio 19\Common7\IDE\Remote Debugger\x86\msvsmon.exe
C:\>dir /S /B vsdebugeng.impl.resources.dll
C:\...\Microsoft SQL Server Management Studio 19\Common7\Packages\Debugger\1033\vsdebugeng.impl.resources.dll
显然,“msvsmon.exe”会查找“1033”子目录以查找资源 dll,因此需要复制整个目录:
C:\>dir /S /B vsdebugeng.impl.resources.dll
C:\...\Microsoft SQL Server Management Studio 19\Common7\IDE\Remote Debugger\x86\1033\vsdebugeng.impl.resources.dll
C:\...\Microsoft SQL Server Management Studio 19\Common7\Packages\Debugger\1033\vsdebugeng.impl.resources.dll
将整个“1033”目录复制到“msvsmon.exe”目录下后找到的一个解决了问题。
额外信息:1033 从哪里来?
This URL https://learn.microsoft.com/en-us/visualstudio/ide/reference/lcid-devenv-exe?view=vs-2022提到 Visual Studio 的语言设置和所提到的子目录的值之间的链接。