花行九颜~VSYASM安装技巧总结

The project provides a basic installer script that can automatically detect any installed Visual Studio 2013, 2015 or 2017 installation and then install the required components.
To use this script simply run '**install_script.bat**' from an elevated command prompt.
//该项目提供了一个基本的安装脚本,它可以自动检测任何安装的Visual Studio 2013, 2015或2017安装,然后安装所需的组件。

To manually install the extension you will first need to download the required win32 or win64 binary (depending on your system) from the official YASM website [http://yasm.tortall.net](http://yasm.tortall.net).
手动安装扩展你首先需要下载所需的Win32和Win64

From the download archive you will need to extract yasm.exe into a location that Visual Studio can see.
To tell Visual Studio where to find yasm.exe you have several options:
//将  yasm.exe 放在 Visual Studio可以看见的地方,有两个方法,二选一

1. Find the directory where the Visual Studio C++ compiler is installed.
This can be determined from within Visual Studio by checking the contents of the VCInstallDir macro.
For example the location for Visual Studio 2015 would be:

//将  yasm.exe拷贝到这个路径之下,注意,软件解压缩之后有yasm-32.exe和yasm-64.exe两个文件,拷贝到目标路径之下需要修改文件的名字,这一点可以从批处理文件中得到印证,详见花行九颜~VSYASM批处理文件知识点总结
    1. C:\Program Files (x86)\Microsoft Visual Studio 14.0\VC         -- For a 64 bit system
    2. C:\Program Files\Microsoft Visual Studio 14.0\VC               -- For a 32 bit system


2. You can install yasm to any directory and then set environment variable YASMPATH to point to the absolute directory of the installed yasm.exe (this path should include the final backslash).
或者可以将yasm安装到任意路径,然后设置环境变量 YASMPATH指向yasm.exe的安装路径

To use the build customisation in Visual Studio you need to copy the 3 provided files (yasm.props, yasm.xml, yasm.targets) into a location where they can be found by the Visual Studio build customisation processes.
There are several ways to do this:


1. Copy these files to the MSBuild customisations directory.
This can be determined from within Visual Studio by checking the contents of the VCTargetsPath macro.
For example the location for various Visual Studio versions on a 64 bit system would be:


    1. Visual Studio 2013: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V120\BuildCustomizations

    2. Visual Studio 2015: C:\Program Files (x86)\MSBuild\Microsoft.Cpp\v4.0\V140\BuildCustomizations

//将yasm.props, yasm.xml, yasm.targets拷贝到这个路径中,即可

    3. Visual Studio 2017: C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\Common7\IDE\VC\VCTargets\BuildCustomizations
  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值