热门标签 | HotTags
当前位置:  开发笔记 > 编程语言 > 正文

VisualStudio2015:没有64位命令提示符-VisualStudio2015:No64-bitcommandprompt

InpreviousversionsofVisualStudio,therewereseparatecommandpromptsforx86andx64.InVS201

In previous versions of Visual Studio, there were separate command prompts for x86 and x64. In VS2015, there's only one, and it's forced to 32-bit explicitly.

在以前版本的Visual Studio中,x86和x64有单独的命令提示符。在VS2015中,只有一个,它被强制为32位显式。

@call "%VS140COMNTOOLS%VCVarsQueryRegistry.bat" 32bit No64bit

My project launches a batch file pre- and post-build to call installutil to uninstall/reinstall my windows service. When building for x64, I get the message:

我的项目在构建之前和之后启动批处理文件,以调用installutil来卸载/重新安装我的Windows服务。在为x64构建时,我收到消息:

System.BadImageFormatException: Could not load file or assembly... 
An attempt was made to load a program with an incorrect format

Rather than fall down the rabbit hole trying to change the scripts, does someone have an easy solution to launching a 64-bit visual studio command prompt? I can't believe this isn't installed by default.

而不是试图改变脚本的兔子洞,有人有一个简单的解决方案来启动64位Visual Studio命令提示符?我不敢相信默认情况下没有安装。

1 个解决方案

#1


1  

You can run this from a standard command prompt:

您可以从标准命令提示符运行它:

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\vcvarsall.bat" amd64

Or more directly,

或者更直接,

"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC\bin\amd64\vcvars64.bat"

Edit according to your install location, of course.

当然,根据您的安装位置进行编辑。


推荐阅读
author-avatar
冲动王子2502901503
这个家伙很懒,什么也没留下!
PHP1.CN | 中国最专业的PHP中文社区 | DevBox开发工具箱 | json解析格式化 |PHP资讯 | PHP教程 | 数据库技术 | 服务器技术 | 前端开发技术 | PHP框架 | 开发工具 | 在线工具
Copyright © 1998 - 2020 PHP1.CN. All Rights Reserved | 京公网安备 11010802041100号 | 京ICP备19059560号-4 | PHP1.CN 第一PHP社区 版权所有