为什么在64位操作系统上,我的进程使用vshost32.exe而不是vshost.exe运行? [英] Why is my process running with vshost32.exe instead of vshost.exe on a 64-bit OS?

查看:199
本文介绍了为什么在64位操作系统上,我的进程使用vshost32.exe而不是vshost.exe运行?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

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

I'm running a process through the Visual Studio 2015 debugger, with the active solution platform set to "Any CPU", on a 64 bit OS. When I look at the process in Process Explorer, the Description field is set to vshost32.exe, but if I set the active solution platform to "x64," the Description field shows vshost.exe.

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

Why would it be selecting vshost32.exe on a 64 bit machine? I have confirmed that calling "c:\Windows\Microsoft.NET\Framework64\v2.0.50727>Ldr64.exe query" returns 1, meaning it should prefer 64-bit on a 64-bit machine.

谢谢!

推荐答案

听起来像64位OS上C#项目的默认行为.如果要制作64位应用程序,请在项目属性页中取消选中首选32位"构建设置.请参阅 https://msdn.microsoft.com/en-us/library/kb4wyys2. aspx 有关项目属性的更多详细信息.

Sounds like the default behavior for a C# project on a 64-bit OS. If you want to make a 64-bit Application, uncheck the "Prefer 32-bit" build setting in your project properties page. See https://msdn.microsoft.com/en-us/library/kb4wyys2.aspx for more details of project properties.

这篇关于为什么在64位操作系统上,我的进程使用vshost32.exe而不是vshost.exe运行?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆