Warning: file_get_contents(/data/phpspider/zhask/data//catemap/9/visual-studio/7.json): failed to open stream: No such file or directory in /data/phpspider/zhask/libs/function.php on line 167

Warning: Invalid argument supplied for foreach() in /data/phpspider/zhask/libs/tag.function.php on line 1116

Notice: Undefined index: in /data/phpspider/zhask/libs/function.php on line 180

Warning: array_chunk() expects parameter 1 to be array, null given in /data/phpspider/zhask/libs/function.php on line 181
Visual studio 为什么我的进程在64位操作系统上使用vshost32.exe而不是vshost.exe运行?_Visual Studio_Visual Studio 2015 - Fatal编程技术网

Visual studio 为什么我的进程在64位操作系统上使用vshost32.exe而不是vshost.exe运行?

Visual studio 为什么我的进程在64位操作系统上使用vshost32.exe而不是vshost.exe运行?,visual-studio,visual-studio-2015,Visual Studio,Visual Studio 2015,我正在通过Visual Studio 2015调试器运行一个进程,在64位操作系统上,将活动解决方案平台设置为“任意CPU”。在process Explorer中查看流程时,说明字段设置为vshost32.exe,但如果将活动解决方案平台设置为“x64”,说明字段将显示vshost.exe 为什么要在64位计算机上选择vshost32.exe?我已经确认,调用“c:\Windows\Microsoft.NET\Framework64\v2.0.50727>Ldr64.exe查询”返回1,这意味着

我正在通过Visual Studio 2015调试器运行一个进程,在64位操作系统上,将活动解决方案平台设置为“任意CPU”。在process Explorer中查看流程时,说明字段设置为vshost32.exe,但如果将活动解决方案平台设置为“x64”,说明字段将显示vshost.exe

为什么要在64位计算机上选择vshost32.exe?我已经确认,调用“c:\Windows\Microsoft.NET\Framework64\v2.0.50727>Ldr64.exe查询”返回1,这意味着在64位计算机上它应该更喜欢64位


谢谢

听起来像是64位操作系统上C#项目的默认行为。如果要生成64位应用程序,请取消选中项目属性页中的“首选32位”生成设置。有关项目属性的详细信息,请参见