1

我为 VS 2008 进行了全新安装,并确保在安装过程中检查“x64 编译器和工具”。但是,当我对 exe 进行 x64 调试构建时,在尝试运行时会出现并排错误。事件查看器记录以下内容:

"Dependent Assembly Microsoft.VC90.DebugCRT,processorArchitecture="amd64",publicKeyToken="1fc8b3b9a1e18e3b",type="win32",version="9.0.21022.8" could not be found. Please use sxstrace.exe for detailed diagnosis."

sxstrace 显示以下内容:

INFO: Begin assembly probing.
                INFO: Did not find the assembly in WinSxS.
                INFO: Attempt to probe manifest at C:\Windows\assembly\GAC_64\Microsoft.VC90.DebugCRT\9.0.21022.8__1fc8b3b9a1e18e3b\Microsoft.VC90.DebugCRT.DLL.
                INFO: Attempt to probe manifest at D:\Work\SPR5569_Tools_modification\Configutil\ProfilePush\debug\x64\Microsoft.VC90.DebugCRT.DLL.
                INFO: Attempt to probe manifest at D:\Work\SPR5569_Tools_modification\Configutil\ProfilePush\debug\x64\Microsoft.VC90.DebugCRT.MANIFEST.
                INFO: Attempt to probe manifest at D:\Work\SPR5569_Tools_modification\Configutil\ProfilePush\debug\x64\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.DLL.
                INFO: Attempt to probe manifest at D:\Work\SPR5569_Tools_modification\Configutil\ProfilePush\debug\x64\Microsoft.VC90.DebugCRT\Microsoft.VC90.DebugCRT.MANIFEST.
                INFO: Did not find manifest for culture Neutral.
INFO: End assembly probing.

我的问题是:

1-“信息:未在 WinSxS 中找到程序集。” 为什么安装程序没有将程序集添加到 WinSxS?

2-该文件可以在该"C:\Program Files (x86)\Microsoft Visual Studio 9.0\VC\redist\Debug_NonRedist\amd64\Microsoft.VC90.DebugCRT"位置找到。为什么安装程序在此处不使用它时将其安装在此处?

3-我设法通过从上述位置获取文件并将其放在可执行文件旁边来使程序正常工作。但是解决这种情况的正确方法是什么?

4-这是谁的问题?这是不正确的VS设置吗?

感谢您的关注。

4

0 回答 0