系统:Windows 10html
IDE:VS2015spa
任务:集成 YASM 1.3.net
官网:http://yasm.tortall.net/Download.htmlcode
照作后,获得一个错误:orm
error MSB3721: The command "......" exited with code 1.xml
直接跑命令则提示:htm
vsyasm: FATAL: unrecognized object format `Win32'get
缘由:区分大小写……应该用 win32 而不是 Win32,您能够改一下工程平台的名字,但默认都是 Win32,不太方便,因此咱们要对 vsyasm.props 进行改造:it
<CommandLineTemplate>"$(YasmPath)"vsyasm.exe -Xvc -f $(Platform) [AllOptions] [AdditionalOptions] [Inputs]</CommandLineTemplate>
替换为:io
<CommandLineTemplate>"$(YasmPath)vsyasm.exe" -Xvc -f $(Platform.ToLower()) [AllOptions] [AdditionalOptions] [Inputs]</CommandLineTemplate>
或者:
<CommandLineTemplate>"$(YasmPath)vsyasm.exe" -Xvc -f win$(PlatformArchitecture) [AllOptions] [AdditionalOptions] [Inputs]</CommandLineTemplate>
保存即搞定,连 VS 都不须要重启。