作者:冲动王子2502901503 | 来源:互联网 | 2023-10-11 14:20
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 个解决方案